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

#include "llvm/Object/Wasm.h"

Collaboration diagram for llvm::object::WasmSymbol:
Collaboration graph
[legend]

Public Member Functions

 WasmSymbol (const wasm::WasmSymbolInfo &Info, const wasm::WasmSignature *FunctionType, const wasm::WasmGlobalType *GlobalType)
 
bool isTypeFunction () const
 
bool isTypeData () const
 
bool isTypeGlobal () const
 
bool isTypeSection () 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

const wasm::WasmSymbolInfoInfo
 
const wasm::WasmSignatureFunctionType
 
const wasm::WasmGlobalTypeGlobalType
 

Detailed Description

Definition at line 36 of file Wasm.h.

Constructor & Destructor Documentation

◆ WasmSymbol()

llvm::object::WasmSymbol::WasmSymbol ( const wasm::WasmSymbolInfo Info,
const wasm::WasmSignature FunctionType,
const wasm::WasmGlobalType GlobalType 
)
inline

Definition at line 38 of file Wasm.h.

Member Function Documentation

◆ dump()

LLVM_DUMP_METHOD void WasmSymbol::dump ( ) const

Definition at line 52 of file WasmObjectFile.cpp.

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

Referenced by getVisibility().

◆ getBinding()

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

◆ getVisibility()

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

◆ isBindingGlobal()

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

Definition at line 71 of file Wasm.h.

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

◆ isBindingLocal()

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

◆ isBindingWeak()

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

◆ isDefined()

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

Definition at line 61 of file Wasm.h.

References isUndefined().

Referenced by llvm::object::WasmObjectFile::getSymbolFlags(), and print().

◆ isHidden()

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

◆ isTypeData()

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

Definition at line 51 of file Wasm.h.

References 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

Definition at line 53 of file Wasm.h.

References llvm::wasm::WasmSymbolInfo::Kind, and llvm::wasm::WASM_SYMBOL_TYPE_GLOBAL.

◆ isTypeSection()

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

◆ isUndefined()

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

◆ print()

void WasmSymbol::print ( raw_ostream Out) const

Member Data Documentation

◆ FunctionType

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

Definition at line 44 of file Wasm.h.

◆ GlobalType

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

Definition at line 45 of file Wasm.h.

◆ Info

const wasm::WasmSymbolInfo& llvm::object::WasmSymbol::Info

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