LLVM 20.0.0git
Namespaces | Macros | Functions
MachO.cpp File Reference
#include "llvm/ExecutionEngine/Orc/MachO.h"
#include "llvm/ADT/ScopeExit.h"
#include "llvm/BinaryFormat/MachO.h"
#include "llvm/ExecutionEngine/Orc/Layer.h"
#include "llvm/Object/MachOUniversal.h"
#include "llvm/Support/FileSystem.h"

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::orc
 

Macros

#define DEBUG_TYPE   "orc"
 

Functions

static std::string llvm::orc::objDesc (const MemoryBufferRef &Obj, const Triple &TT, bool ObjIsSlice)
 
template<typename HeaderType >
static Error llvm::orc::checkMachORelocatableObject (MemoryBufferRef Obj, bool SwapEndianness, const Triple &TT, bool ObjIsSlice)
 
Error llvm::orc::checkMachORelocatableObject (MemoryBufferRef Obj, const Triple &TT, bool ObjIsSlice)
 Check that the given buffer contains a MachO object file compatible with the given triple.
 
Expected< std::unique_ptr< MemoryBuffer > > llvm::orc::checkMachORelocatableObject (std::unique_ptr< MemoryBuffer > Obj, const Triple &TT, bool ObjIsSlice)
 Check that the given buffer contains a MachO object file compatible with the given triple.
 
Expected< std::pair< std::unique_ptr< MemoryBuffer >, LinkableFileKind > > llvm::orc::loadMachORelocatableObject (StringRef Path, const Triple &TT, LoadArchives LA, std::optional< StringRef > IdentifierOverride)
 
Expected< std::pair< std::unique_ptr< MemoryBuffer >, LinkableFileKind > > llvm::orc::loadLinkableSliceFromMachOUniversalBinary (sys::fs::file_t FD, std::unique_ptr< MemoryBuffer > UBBuf, const Triple &TT, LoadArchives LA, StringRef UBPath, StringRef Identifier)
 Load a compatible relocatable object (if available) from a MachO universal binary.
 
Expected< std::pair< size_t, size_t > > llvm::orc::getMachOSliceRangeForTriple (object::MachOUniversalBinary &UB, const Triple &TT)
 Utility for identifying the file-slice compatible with TT in a universal binary.
 
Expected< std::pair< size_t, size_t > > llvm::orc::getMachOSliceRangeForTriple (MemoryBufferRef UBBuf, const Triple &TT)
 Utility for identifying the file-slice compatible with TT in a universal binary.
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "orc"

Definition at line 17 of file MachO.cpp.