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()
78 delete unwrap(ObjectFile); in LLVMDisposeObjectFile()
83 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMGetSections()
89 delete unwrap(SI); in LLVMDisposeSectionIterator()
94 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMIsSectionIteratorAtEnd()
95 return (*unwrap(SI) == OB->getBinary()->section_end()) ? 1 : 0; in LLVMIsSectionIteratorAtEnd()
99 ++(*unwrap(SI)); in LLVMMoveToNextSection()
104 Expected<section_iterator> SecOrErr = (*unwrap(Sym))->getSection(); in LLVMMoveToContainingSection()
112 *unwrap(Sect) = *SecOrErr; in LLVMMoveToContainingSection()
117 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMGetSymbols()
123 delete unwrap(SI); in LLVMDisposeSymbolIterator()
128 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMIsSymbolIteratorAtEnd()
129 return (*unwrap(SI) == OB->getBinary()->symbol_end()) ? 1 : 0; in LLVMIsSymbolIteratorAtEnd()
133 ++(*unwrap(SI)); in LLVMMoveToNextSymbol()
139 if (std::error_code ec = (*unwrap(SI))->getName(ret)) in LLVMGetSectionName()
145 return (*unwrap(SI))->getSize(); in LLVMGetSectionSize()
150 if (std::error_code ec = (*unwrap(SI))->getContents(ret)) in LLVMGetSectionContents()
156 return (*unwrap(SI))->getAddress(); in LLVMGetSectionAddress()
161 return (*unwrap(SI))->containsSymbol(**unwrap(Sym)); in LLVMGetSectionContainsSymbol()
166 relocation_iterator SI = (*unwrap(Section))->relocation_begin(); in LLVMGetRelocations()
171 delete unwrap(SI); in LLVMDisposeRelocationIterator()
176 return (*unwrap(SI) == (*unwrap(Section))->relocation_end()) ? 1 : 0; in LLVMIsRelocationIteratorAtEnd()
180 ++(*unwrap(SI)); in LLVMMoveToNextRelocation()
186 Expected<StringRef> Ret = (*unwrap(SI))->getName(); in LLVMGetSymbolName()
198 Expected<uint64_t> Ret = (*unwrap(SI))->getAddress(); in LLVMGetSymbolAddress()
210 return (*unwrap(SI))->getCommonSize(); in LLVMGetSymbolSize()
215 return (*unwrap(RI))->getOffset(); in LLVMGetRelocationOffset()
219 symbol_iterator ret = (*unwrap(RI))->getSymbol(); in LLVMGetRelocationSymbol()
224 return (*unwrap(RI))->getType(); in LLVMGetRelocationType()
230 (*unwrap(RI))->getTypeName(ret); in LLVMGetRelocationTypeName()