Lines Matching refs:unwrap
22 inline OwningBinary<ObjectFile> *unwrap(LLVMObjectFileRef OF) { in unwrap() function
31 inline section_iterator *unwrap(LLVMSectionIteratorRef SI) { in unwrap() function
41 inline symbol_iterator *unwrap(LLVMSymbolIteratorRef SI) { in unwrap() function
51 inline relocation_iterator *unwrap(LLVMRelocationIteratorRef SI) { in unwrap() function
63 std::unique_ptr<MemoryBuffer> Buf(unwrap(MemBuf)); in LLVMCreateObjectFile()
75 delete unwrap(ObjectFile); in LLVMDisposeObjectFile()
80 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMGetSections()
86 delete unwrap(SI); in LLVMDisposeSectionIterator()
91 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMIsSectionIteratorAtEnd()
92 return (*unwrap(SI) == OB->getBinary()->section_end()) ? 1 : 0; in LLVMIsSectionIteratorAtEnd()
96 ++(*unwrap(SI)); in LLVMMoveToNextSection()
101 if (std::error_code ec = (*unwrap(Sym))->getSection(*unwrap(Sect))) in LLVMMoveToContainingSection()
107 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMGetSymbols()
113 delete unwrap(SI); in LLVMDisposeSymbolIterator()
118 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMIsSymbolIteratorAtEnd()
119 return (*unwrap(SI) == OB->getBinary()->symbol_end()) ? 1 : 0; in LLVMIsSymbolIteratorAtEnd()
123 ++(*unwrap(SI)); in LLVMMoveToNextSymbol()
129 if (std::error_code ec = (*unwrap(SI))->getName(ret)) in LLVMGetSectionName()
135 return (*unwrap(SI))->getSize(); in LLVMGetSectionSize()
140 if (std::error_code ec = (*unwrap(SI))->getContents(ret)) in LLVMGetSectionContents()
146 return (*unwrap(SI))->getAddress(); in LLVMGetSectionAddress()
151 return (*unwrap(SI))->containsSymbol(**unwrap(Sym)); in LLVMGetSectionContainsSymbol()
156 relocation_iterator SI = (*unwrap(Section))->relocation_begin(); in LLVMGetRelocations()
161 delete unwrap(SI); in LLVMDisposeRelocationIterator()
166 return (*unwrap(SI) == (*unwrap(Section))->relocation_end()) ? 1 : 0; in LLVMIsRelocationIteratorAtEnd()
170 ++(*unwrap(SI)); in LLVMMoveToNextRelocation()
177 if (std::error_code ec = (*unwrap(SI))->getName(ret)) in LLVMGetSymbolName()
184 if (std::error_code ec = (*unwrap(SI))->getAddress(ret)) in LLVMGetSymbolAddress()
191 if (std::error_code ec = (*unwrap(SI))->getSize(ret)) in LLVMGetSymbolSize()
199 if (std::error_code ec = (*unwrap(RI))->getAddress(ret)) in LLVMGetRelocationAddress()
206 if (std::error_code ec = (*unwrap(RI))->getOffset(ret)) in LLVMGetRelocationOffset()
212 symbol_iterator ret = (*unwrap(RI))->getSymbol(); in LLVMGetRelocationSymbol()
218 if (std::error_code ec = (*unwrap(RI))->getType(ret)) in LLVMGetRelocationType()
226 if (std::error_code ec = (*unwrap(RI))->getTypeName(ret)) in LLVMGetRelocationTypeName()
237 if (std::error_code ec = (*unwrap(RI))->getValueString(ret)) in LLVMGetRelocationValueString()