LLVM 22.0.0git
|
This class keeps data and services common for the whole linking process. More...
#include "DWARFLinker/Parallel/DWARFLinkerGlobalData.h"
Public Member Functions | |
llvm::parallel::PerThreadBumpPtrAllocator & | getAllocator () |
Returns global per-thread allocator. | |
StringPool & | getStringPool () |
Returns global string pool. | |
const DWARFLinkerOptions & | getOptions () const |
Returns linking options. | |
void | setWarningHandler (MessageHandlerTy Handler) |
Set warning handler. | |
void | setErrorHandler (MessageHandlerTy Handler) |
Set error handler. | |
void | warn (const Twine &Warning, StringRef Context, const DWARFDie *DIE=nullptr) |
Report warning. | |
void | warn (Error Warning, StringRef Context, const DWARFDie *DIE=nullptr) |
Report warning. | |
void | error (const Twine &Err, StringRef Context, const DWARFDie *DIE=nullptr) |
Report error. | |
void | error (Error Err, StringRef Context, const DWARFDie *DIE=nullptr) |
Report error. | |
void | setTargetTriple (const Triple &TargetTriple) |
Set target triple. | |
std::optional< std::reference_wrapper< const Triple > > | getTargetTriple () |
Optionally return target triple. |
Protected Attributes | |
llvm::parallel::PerThreadBumpPtrAllocator | Allocator |
StringPool | Strings |
DWARFLinkerOptions | Options |
MessageHandlerTy | WarningHandler |
MessageHandlerTy | ErrorHandler |
std::optional< Triple > | TargetTriple |
Triple for output data. |
This class keeps data and services common for the whole linking process.
Definition at line 85 of file DWARFLinkerGlobalData.h.
|
inline |
Report error.
Definition at line 128 of file DWARFLinkerGlobalData.h.
References error, llvm::handleAllErrors(), and Info.
|
inline |
Returns global per-thread allocator.
Definition at line 90 of file DWARFLinkerGlobalData.h.
References Allocator.
|
inline |
|
inline |
Returns global string pool.
Definition at line 95 of file DWARFLinkerGlobalData.h.
References Strings.
|
inline |
Optionally return target triple.
Definition at line 140 of file DWARFLinkerGlobalData.h.
References TargetTriple.
|
inline |
|
inline |
Set warning handler.
Definition at line 101 of file DWARFLinkerGlobalData.h.
References WarningHandler.
|
inline |
Report warning.
Definition at line 107 of file DWARFLinkerGlobalData.h.
References llvm::Warning, and WarningHandler.
Referenced by warn().
|
inline |
Report warning.
Definition at line 114 of file DWARFLinkerGlobalData.h.
References llvm::handleAllErrors(), Info, warn(), and llvm::Warning.
|
protected |
Definition at line 148 of file DWARFLinkerGlobalData.h.
Referenced by getAllocator().
|
protected |
Definition at line 152 of file DWARFLinkerGlobalData.h.
Referenced by error(), and setErrorHandler().
|
protected |
Definition at line 150 of file DWARFLinkerGlobalData.h.
Referenced by getOptions().
|
protected |
Definition at line 149 of file DWARFLinkerGlobalData.h.
Referenced by getStringPool().
|
protected |
Triple for output data.
May be not set if generation of output data is not requested.
Definition at line 156 of file DWARFLinkerGlobalData.h.
Referenced by getTargetTriple(), and setTargetTriple().
|
protected |
Definition at line 151 of file DWARFLinkerGlobalData.h.
Referenced by setWarningHandler(), and warn().