LLVM 20.0.0git
|
#include "llvm/Object/Wasm.h"
Public Member Functions | |
WasmSymbol (const wasm::WasmSymbolInfo &Info, const wasm::WasmGlobalType *GlobalType, const wasm::WasmTableType *TableType, const wasm::WasmSignature *Signature) | |
bool | isTypeFunction () const |
bool | isTypeTable () const |
bool | isTypeData () const |
bool | isTypeGlobal () const |
bool | isTypeSection () const |
bool | isTypeTag () const |
bool | isDefined () const |
bool | isUndefined () const |
bool | isBindingWeak () const |
bool | isBindingGlobal () const |
bool | isBindingLocal () const |
unsigned | getBinding () const |
bool | isHidden () const |
unsigned | getVisibility () const |
void | print (raw_ostream &Out) const |
LLVM_DUMP_METHOD void | dump () const |
Public Attributes | |
wasm::WasmSymbolInfo | Info |
const wasm::WasmGlobalType * | GlobalType |
const wasm::WasmTableType * | TableType |
const wasm::WasmSignature * | Signature |
|
inline |
Definition at line 37 of file Wasm.h.
References assert(), llvm::wasm::WasmSignature::Kind, llvm::wasm::WasmSignature::Placeholder, and Signature.
LLVM_DUMP_METHOD void WasmSymbol::dump | ( | ) | const |
Definition at line 62 of file WasmObjectFile.cpp.
References llvm::dbgs(), and print().
|
inline |
Definition at line 89 of file Wasm.h.
References llvm::wasm::WasmSymbolInfo::Flags, Info, and llvm::wasm::WASM_SYMBOL_BINDING_MASK.
Referenced by isBindingGlobal(), isBindingLocal(), isBindingWeak(), and print().
|
inline |
Definition at line 97 of file Wasm.h.
References llvm::wasm::WasmSymbolInfo::Flags, Info, and llvm::wasm::WASM_SYMBOL_VISIBILITY_MASK.
Referenced by isHidden().
|
inline |
Definition at line 81 of file Wasm.h.
References getBinding(), and llvm::wasm::WASM_SYMBOL_BINDING_GLOBAL.
|
inline |
Definition at line 85 of file Wasm.h.
References getBinding(), and llvm::wasm::WASM_SYMBOL_BINDING_LOCAL.
|
inline |
Definition at line 77 of file Wasm.h.
References getBinding(), and llvm::wasm::WASM_SYMBOL_BINDING_WEAK.
|
inline |
|
inline |
Definition at line 93 of file Wasm.h.
References getVisibility(), and llvm::wasm::WASM_SYMBOL_VISIBILITY_HIDDEN.
Referenced by print().
|
inline |
Definition at line 59 of file Wasm.h.
References Info, llvm::wasm::WasmSymbolInfo::Kind, and llvm::wasm::WASM_SYMBOL_TYPE_DATA.
Referenced by print().
|
inline |
Definition at line 53 of file Wasm.h.
References Info, llvm::wasm::WasmSymbolInfo::Kind, and llvm::wasm::WASM_SYMBOL_TYPE_FUNCTION.
|
inline |
Definition at line 61 of file Wasm.h.
References Info, llvm::wasm::WasmSymbolInfo::Kind, and llvm::wasm::WASM_SYMBOL_TYPE_GLOBAL.
|
inline |
Definition at line 65 of file Wasm.h.
References Info, llvm::wasm::WasmSymbolInfo::Kind, and llvm::wasm::WASM_SYMBOL_TYPE_SECTION.
|
inline |
Definition at line 57 of file Wasm.h.
References Info, llvm::wasm::WasmSymbolInfo::Kind, and llvm::wasm::WASM_SYMBOL_TYPE_TABLE.
|
inline |
Definition at line 69 of file Wasm.h.
References Info, llvm::wasm::WasmSymbolInfo::Kind, and llvm::wasm::WASM_SYMBOL_TYPE_TAG.
|
inline |
Definition at line 73 of file Wasm.h.
References llvm::wasm::WasmSymbolInfo::Flags, Info, and llvm::wasm::WASM_SYMBOL_UNDEFINED.
Referenced by isDefined().
void WasmSymbol::print | ( | raw_ostream & | Out | ) | const |
Definition at line 37 of file WasmObjectFile.cpp.
References llvm::wasm::WasmSymbolInfo::DataRef, llvm::wasm::WasmSymbolInfo::ElementIndex, llvm::wasm::WasmSymbolInfo::Flags, getBinding(), Info, isDefined(), isHidden(), isTypeData(), llvm::wasm::WasmSymbolInfo::Kind, llvm::wasm::WasmSymbolInfo::Name, llvm::wasm::WasmDataReference::Offset, llvm::wasm::WasmDataReference::Segment, llvm::wasm::WasmDataReference::Size, llvm::toString(), llvm::Twine::utohexstr(), llvm::wasm::WASM_SYMBOL_BINDING_GLOBAL, llvm::wasm::WASM_SYMBOL_BINDING_LOCAL, and llvm::wasm::WASM_SYMBOL_BINDING_WEAK.
Referenced by dump().
const wasm::WasmGlobalType* llvm::object::WasmSymbol::GlobalType |
wasm::WasmSymbolInfo llvm::object::WasmSymbol::Info |
Definition at line 48 of file Wasm.h.
Referenced by getBinding(), llvm::object::WasmObjectFile::getSymbolName(), getVisibility(), isTypeData(), isTypeFunction(), isTypeGlobal(), isTypeSection(), isTypeTable(), isTypeTag(), isUndefined(), and print().
const wasm::WasmSignature* llvm::object::WasmSymbol::Signature |
Definition at line 51 of file Wasm.h.
Referenced by WasmSymbol().
const wasm::WasmTableType* llvm::object::WasmSymbol::TableType |