22 using namespace object;
71 return std::move(Obj);
76 return std::move(Obj);
static Expected< OwningBinary< ObjectFile > > createObjectFile(StringRef ObjectPath)
Create ObjectFile from path.
Represents either an error or a value T.
Mach-O dynlinked shared lib.
ELF Relocatable object file.
SymbolicFile(unsigned int Type, MemoryBufferRef Source)
Tagged union holding either a T or a Error.
ELF dynamically linked shared lib.
Windows compiled resource file (.rc)
static Expected< std::unique_ptr< IRObjectFile > > create(MemoryBufferRef Object, LLVMContext &Context)
The instances of the Type class are immutable: once they are created, they are never changed...
This is an important class for using LLVM in a threaded context.
Microsoft cl.exe's intermediate code file.
Error errorCodeToError(std::error_code EC)
Helper for converting an std::error_code to a Error.
Mach-O Preloaded Executable.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
file_magic identify_magic(StringRef magic)
Identify the type of a binary file based on how magical it is.
StringRef getBuffer() const
reference get()
Returns a reference to the stored T value.
file_magic - An "enum class" enumeration of file types based on magic (the first N bytes of the file)...
Mach-O dSYM companion file.
The Mach-O dynamic linker.
static ErrorOr< MemoryBufferRef > findBitcodeInObject(const ObjectFile &Obj)
Finds and returns bitcode embedded in the given object file, or an error code if not found...
StringRef getBufferIdentifier() const
#define LLVM_FALLTHROUGH
LLVM_FALLTHROUGH - Mark fallthrough cases in switch statements.
StringRef - Represent a constant reference to a string, i.e.
static Expected< std::unique_ptr< SymbolicFile > > createSymbolicFile(MemoryBufferRef Object, sys::fs::file_magic Type, LLVMContext *Context)