|
LLVM 24.0.0git
|
#include "llvm/Object/Archive.h"
Public Member Functions | |
| Symbol (const Archive *p, uint32_t symi, uint32_t stri) | |
| bool | operator== (const Symbol &other) const |
| LLVM_ABI StringRef | getName () const |
| LLVM_ABI Expected< Child > | getMember () const |
| LLVM_ABI Symbol | getNext () const |
| LLVM_ABI bool | isECSymbol () const |
| LLVM_ABI uint32_t | getZOSAttributes () const |
| For K_ZOS archives, returns the 32-bit attribute word stored alongside the symbol table entry. | |
Static Public Attributes | |
| static constexpr uint32_t | ZOSAttrWSA = 0x1 |
| Archive attribute bit masks for K_ZOS archive symbol table entries. | |
| static constexpr uint32_t | ZOSAttrXPLink = 0x2 |
| static constexpr uint32_t | ZOSAttr64Bit = 0x4 |
| static constexpr uint32_t | ZOSKnownAttrMask |
Definition at line 340 of file Archive.h.
References llvm::object::Archive::Archive().
Referenced by getNext(), and operator==().
| Expected< Archive::Child > Archive::Symbol::getMember | ( | ) | const |
Definition at line 1161 of file Archive.cpp.
References C(), llvm::errorCodeToError(), isECSymbol(), llvm::object::Archive::K_AIXBIG, llvm::object::Archive::K_BSD, llvm::object::Archive::K_DARWIN64, llvm::object::Archive::K_GNU, llvm::object::Archive::K_GNU64, llvm::object::Archive::K_ZOS, llvm::Offset, llvm::object::parse_failed, llvm::support::endian::read16le(), llvm::support::endian::read32be(), llvm::support::endian::read32le(), llvm::support::endian::read64be(), llvm::support::endian::read64le(), and llvm::Error::success().
Referenced by llvm::object::Archive::findSym().
| StringRef Archive::Symbol::getName | ( | ) | const |
Definition at line 1155 of file Archive.cpp.
References llvm::StringRef::begin(), and isECSymbol().
Referenced by llvm::object::Archive::findSym().
| Archive::Symbol Archive::Symbol::getNext | ( | ) | const |
Definition at line 1237 of file Archive.cpp.
References isECSymbol(), llvm::object::Archive::K_BSD, llvm::support::endian::read32le(), and Symbol().
| uint32_t Archive::Symbol::getZOSAttributes | ( | ) | const |
For K_ZOS archives, returns the 32-bit attribute word stored alongside the symbol table entry.
The low bits are described by the ZOSAttr* constants above. Returns 0 for non-z/OS archives.
Definition at line 1143 of file Archive.cpp.
References assert(), llvm::object::Archive::K_ZOS, and llvm::support::endian::read32be().
| bool Archive::Symbol::isECSymbol | ( | ) | const |
Definition at line 1135 of file Archive.cpp.
Referenced by getMember(), getName(), and getNext().
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |