Lines Matching refs:ObjectFile
24 inline OwningBinary<ObjectFile> *unwrap(LLVMObjectFileRef OF) { in unwrap()
25 return reinterpret_cast<OwningBinary<ObjectFile> *>(OF); in unwrap()
28 inline LLVMObjectFileRef wrap(const OwningBinary<ObjectFile> *OF) { in wrap()
30 const_cast<OwningBinary<ObjectFile> *>(OF)); in wrap()
143 Expected<std::unique_ptr<ObjectFile>> ObjOrErr( in LLVMMachOUniversalBinaryCopyObjectForArch()
153 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileCopySectionIterator()
162 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileIsSectionIteratorAtEnd()
167 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileCopySymbolIterator()
176 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileIsSymbolIteratorAtEnd()
183 Expected<std::unique_ptr<ObjectFile>> ObjOrErr( in LLVMCreateObjectFile()
184 ObjectFile::createObjectFile(Buf->getMemBufferRef())); in LLVMCreateObjectFile()
185 std::unique_ptr<ObjectFile> Obj; in LLVMCreateObjectFile()
192 auto *Ret = new OwningBinary<ObjectFile>(std::move(ObjOrErr.get()), std::move(Buf)); in LLVMCreateObjectFile()
196 void LLVMDisposeObjectFile(LLVMObjectFileRef ObjectFile) { in LLVMDisposeObjectFile() argument
197 delete unwrap(ObjectFile); in LLVMDisposeObjectFile()
202 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMGetSections()
213 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMIsSectionIteratorAtEnd()
235 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMGetSymbols()
246 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMIsSymbolIteratorAtEnd()