LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::object::WasmSymbol Class Reference

#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::WasmGlobalTypeGlobalType
 
const wasm::WasmTableTypeTableType
 
const wasm::WasmSignatureSignature
 

Detailed Description

Definition at line 35 of file Wasm.h.

Constructor & Destructor Documentation

◆ WasmSymbol()

llvm::object::WasmSymbol::WasmSymbol ( const wasm::WasmSymbolInfo Info,
const wasm::WasmGlobalType GlobalType,
const wasm::WasmTableType TableType,
const wasm::WasmSignature Signature 
)
inline

Member Function Documentation

◆ dump()

LLVM_DUMP_METHOD void WasmSymbol::dump ( ) const

Definition at line 62 of file WasmObjectFile.cpp.

References llvm::dbgs(), and print().

◆ getBinding()

unsigned llvm::object::WasmSymbol::getBinding ( ) const
inline

◆ getVisibility()

unsigned llvm::object::WasmSymbol::getVisibility ( ) const
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().

◆ isBindingGlobal()

bool llvm::object::WasmSymbol::isBindingGlobal ( ) const
inline

Definition at line 81 of file Wasm.h.

References getBinding(), and llvm::wasm::WASM_SYMBOL_BINDING_GLOBAL.

◆ isBindingLocal()

bool llvm::object::WasmSymbol::isBindingLocal ( ) const
inline

Definition at line 85 of file Wasm.h.

References getBinding(), and llvm::wasm::WASM_SYMBOL_BINDING_LOCAL.

◆ isBindingWeak()

bool llvm::object::WasmSymbol::isBindingWeak ( ) const
inline

Definition at line 77 of file Wasm.h.

References getBinding(), and llvm::wasm::WASM_SYMBOL_BINDING_WEAK.

◆ isDefined()

bool llvm::object::WasmSymbol::isDefined ( ) const
inline

Definition at line 71 of file Wasm.h.

References isUndefined().

Referenced by print().

◆ isHidden()

bool llvm::object::WasmSymbol::isHidden ( ) const
inline

Definition at line 93 of file Wasm.h.

References getVisibility(), and llvm::wasm::WASM_SYMBOL_VISIBILITY_HIDDEN.

Referenced by print().

◆ isTypeData()

bool llvm::object::WasmSymbol::isTypeData ( ) const
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().

◆ isTypeFunction()

bool llvm::object::WasmSymbol::isTypeFunction ( ) const
inline

◆ isTypeGlobal()

bool llvm::object::WasmSymbol::isTypeGlobal ( ) const
inline

◆ isTypeSection()

bool llvm::object::WasmSymbol::isTypeSection ( ) const
inline

◆ isTypeTable()

bool llvm::object::WasmSymbol::isTypeTable ( ) const
inline

Definition at line 57 of file Wasm.h.

References Info, llvm::wasm::WasmSymbolInfo::Kind, and llvm::wasm::WASM_SYMBOL_TYPE_TABLE.

◆ isTypeTag()

bool llvm::object::WasmSymbol::isTypeTag ( ) const
inline

Definition at line 69 of file Wasm.h.

References Info, llvm::wasm::WasmSymbolInfo::Kind, and llvm::wasm::WASM_SYMBOL_TYPE_TAG.

◆ isUndefined()

bool llvm::object::WasmSymbol::isUndefined ( ) const
inline

Definition at line 73 of file Wasm.h.

References llvm::wasm::WasmSymbolInfo::Flags, Info, and llvm::wasm::WASM_SYMBOL_UNDEFINED.

Referenced by isDefined().

◆ print()

void WasmSymbol::print ( raw_ostream Out) const

Member Data Documentation

◆ GlobalType

const wasm::WasmGlobalType* llvm::object::WasmSymbol::GlobalType

Definition at line 49 of file Wasm.h.

◆ Info

wasm::WasmSymbolInfo llvm::object::WasmSymbol::Info

◆ Signature

const wasm::WasmSignature* llvm::object::WasmSymbol::Signature

Definition at line 51 of file Wasm.h.

Referenced by WasmSymbol().

◆ TableType

const wasm::WasmTableType* llvm::object::WasmSymbol::TableType

Definition at line 50 of file Wasm.h.


The documentation for this class was generated from the following files: