82 return std::move(Obj);
88 return std::move(Obj);
static Expected< OwningBinary< ObjectFile > > createObjectFile(StringRef ObjectPath)
This class represents lattice values for constants.
Microsoft cl.exe's intermediate code file.
ELF dynamically linked shared lib.
static Expected< std::unique_ptr< SymbolicFile > > createSymbolicFile(MemoryBufferRef Object, llvm::file_magic Type, LLVMContext *Context)
Windows compiled resource file (.res)
Error takeError()
Take ownership of the stored error.
Mach-O Preloaded Executable.
SymbolicFile(unsigned int Type, MemoryBufferRef Source)
StringRef getBuffer() const
file_magic identify_magic(StringRef magic)
Identify the type of a binary file based on how magical it is.
The Mach-O dynamic linker.
Tagged union holding either a T or a Error.
ELF Relocatable object file.
static Expected< std::unique_ptr< IRObjectFile > > create(MemoryBufferRef Object, LLVMContext &Context)
Mach-O dSYM companion file.
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.
Error errorCodeToError(std::error_code EC)
Helper for converting an std::error_code to a Error.
void consumeError(Error Err)
Consume a Error without doing anything.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
Mach-O dynlinked shared lib.
static Expected< MemoryBufferRef > findBitcodeInObject(const ObjectFile &Obj)
Finds and returns bitcode embedded in the given object file, or an error code if not found...
reference get()
Returns a reference to the stored T value.
StringRef getBufferIdentifier() const
Provides ErrorOr<T> smart pointer.
StringRef - Represent a constant reference to a string, i.e.
Windows PDB debug info file.
file_magic - An "enum class" enumeration of file types based on magic (the first N bytes of the file)...