Home | History | Annotate | Download | only in Object

Lines Matching refs:ObjectFile

17 #include "llvm/Object/ObjectFile.h"
22 inline OwningBinary<ObjectFile> *unwrap(LLVMObjectFileRef OF) {
23 return reinterpret_cast<OwningBinary<ObjectFile> *>(OF);
26 inline LLVMObjectFileRef wrap(const OwningBinary<ObjectFile> *OF) {
28 const_cast<OwningBinary<ObjectFile> *>(OF));
61 // ObjectFile creation
64 ErrorOr<std::unique_ptr<ObjectFile>> ObjOrErr(
65 ObjectFile::createObjectFile(Buf->getMemBufferRef()));
66 std::unique_ptr<ObjectFile> Obj;
70 auto *Ret = new OwningBinary<ObjectFile>(std::move(ObjOrErr.get()), std::move(Buf));
74 void LLVMDisposeObjectFile(LLVMObjectFileRef ObjectFile) {
75 delete unwrap(ObjectFile);
78 // ObjectFile Section iterators
80 OwningBinary<ObjectFile> *OB = unwrap(OF);
91 OwningBinary<ObjectFile> *OB = unwrap(OF);
107 // ObjectFile Symbol iterators
109 OwningBinary<ObjectFile> *OB = unwrap(OF);
120 OwningBinary<ObjectFile> *OB = unwrap(OF);