class DumpObjects
Declaration
class DumpObjects { /* full declaration omitted */ };
Description
A function object that can be used as an ObjectTransformLayer transform to dump object files to disk at a specified path.
Declared at: llvm/include/llvm/ExecutionEngine/Orc/DebugUtils.h:100
Member Variables
- private std::string DumpDir
- private std::string IdentifierOverride
Method Overview
- public DumpObjects(std::string DumpDir = "", std::string IdentifierOverride = "")
- private llvm::StringRef getBufferIdentifier(llvm::MemoryBuffer & B)
Methods
¶DumpObjects(std::string DumpDir = "",
std::string IdentifierOverride = "")
DumpObjects(std::string DumpDir = "",
std::string IdentifierOverride = "")
Description
Construct a DumpObjects transform that will dump objects to disk.
Declared at: llvm/include/llvm/ExecutionEngine/Orc/DebugUtils.h:115
Parameters
- std::string DumpDir = ""
- specifies the path to write dumped objects to. DumpDir may be empty, in which case files will be dumped to the working directory. If DumpDir is non-empty then any trailing separators will be discarded.
- std::string IdentifierOverride = ""
- specifies a file name stem to use when dumping objects. If empty, each MemoryBuffer's identifier will be used (with a .o suffix added if not already present). If an identifier override is supplied it will be used instead (since all buffers will use the same identifier, the resulting files will be named <ident >.o, <ident >.2.o, <ident >.3.o, and so on). IdentifierOverride should not contain an extension, as a .o suffix will be added by DumpObjects.
¶llvm::StringRef getBufferIdentifier(
llvm::MemoryBuffer& B)
llvm::StringRef getBufferIdentifier(
llvm::MemoryBuffer& B)
Declared at: llvm/include/llvm/ExecutionEngine/Orc/DebugUtils.h:122