Bartleby 0.1.0
A symbol renaming toolkit
|
Object format. More...
#include <Bartleby.h>
Classes | |
struct | Hash |
std::hash implementation for ObjectFormat . More... | |
Public Member Functions | |
ObjectFormat (const llvm::Triple &Triple) noexcept | |
Constructs an ObjectFormat out of a llvm::Triple . | |
uint64_t | pack () const noexcept |
Packs the architecture, sub-architecture and object format file enums into a 8-bytes unsigned integer. | |
bool | operator== (const ObjectFormat &Other) const noexcept |
bool | matches (const llvm::Triple &Triple) const noexcept |
Verifies that a llvm::Triple matches the value from an ObjectFormat . | |
Public Attributes | |
llvm::Triple::ArchType | Arch |
The architecture. | |
llvm::Triple::SubArchType | SubArch |
The sub-architecture. | |
llvm::Triple::ObjectFormatType | FormatType |
The object format file. | |
Friends | |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &OS, const ObjectFormat &Format) noexcept |
Dumps the ObjectFormat to a llvm::raw_ostream . | |
Object format.
This structure defines an object format using the minimum amount of information. It uses the architecture type (llvm::Triple::ArchType
), the sub-architecture type (llvm::Triple::SubArchType
) and the object file format (llvm::Triple::ObjectFormatType
).
|
noexcept |
Constructs an ObjectFormat
out of a llvm::Triple
.
Triple | The triple to use. |
|
noexcept |
Verifies that a llvm::Triple
matches the value from an ObjectFormat
.
Triple | The triple to compare against the ObjectFormat. |
|
noexcept |
|
noexcept |
Packs the architecture, sub-architecture and object format file enums into a 8-bytes unsigned integer.