Lines Matching refs:ObjectFile
23 inline OwningBinary<ObjectFile> *unwrap(LLVMObjectFileRef OF) { in unwrap()
24 return reinterpret_cast<OwningBinary<ObjectFile> *>(OF); in unwrap()
27 inline LLVMObjectFileRef wrap(const OwningBinary<ObjectFile> *OF) { in wrap()
29 const_cast<OwningBinary<ObjectFile> *>(OF)); in wrap()
140 Expected<std::unique_ptr<ObjectFile>> ObjOrErr( in LLVMMachOUniversalBinaryCopyObjectForArch()
150 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileCopySectionIterator()
159 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileIsSectionIteratorAtEnd()
164 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileCopySymbolIterator()
173 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileIsSymbolIteratorAtEnd()
180 Expected<std::unique_ptr<ObjectFile>> ObjOrErr( in LLVMCreateObjectFile()
181 ObjectFile::createObjectFile(Buf->getMemBufferRef())); in LLVMCreateObjectFile()
182 std::unique_ptr<ObjectFile> Obj; in LLVMCreateObjectFile()
189 auto *Ret = new OwningBinary<ObjectFile>(std::move(ObjOrErr.get()), std::move(Buf)); in LLVMCreateObjectFile()
193 void LLVMDisposeObjectFile(LLVMObjectFileRef ObjectFile) { in LLVMDisposeObjectFile() argument
194 delete unwrap(ObjectFile); in LLVMDisposeObjectFile()
199 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMGetSections()
210 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMIsSectionIteratorAtEnd()
233 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMGetSymbols()
244 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMIsSymbolIteratorAtEnd()