LLVM  6.0.0svn
Public Types | 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 Types

enum  SymbolType {
  SymbolType::FUNCTION_IMPORT, SymbolType::FUNCTION_EXPORT, SymbolType::GLOBAL_IMPORT, SymbolType::GLOBAL_EXPORT,
  SymbolType::DEBUG_FUNCTION_NAME
}
 

Public Member Functions

 WasmSymbol (StringRef Name, SymbolType Type, uint32_t Section, uint32_t ElementIndex, uint32_t ImportIndex=0)
 
bool isFunction () const
 
bool isWeak () const
 
bool isGlobal () const
 
bool isLocal () const
 
unsigned getBinding () const
 
bool isHidden () const
 
unsigned getVisibility () const
 
void print (raw_ostream &Out) const
 
LLVM_DUMP_METHOD void dump () const
 

Public Attributes

StringRef Name
 
SymbolType Type
 
uint32_t Section
 
uint32_t Flags = 0
 
uint32_t ElementIndex
 
uint32_t ImportIndex
 

Detailed Description

Definition at line 35 of file Wasm.h.

Member Enumeration Documentation

◆ SymbolType

Enumerator
FUNCTION_IMPORT 
FUNCTION_EXPORT 
GLOBAL_IMPORT 
GLOBAL_EXPORT 
DEBUG_FUNCTION_NAME 

Definition at line 37 of file Wasm.h.

Constructor & Destructor Documentation

◆ WasmSymbol()

llvm::object::WasmSymbol::WasmSymbol ( StringRef  Name,
SymbolType  Type,
uint32_t  Section,
uint32_t  ElementIndex,
uint32_t  ImportIndex = 0 
)
inline

Definition at line 45 of file Wasm.h.

Member Function Documentation

◆ dump()

LLVM_DUMP_METHOD void llvm::object::WasmSymbol::dump ( ) const
inline

Definition at line 99 of file Wasm.h.

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

◆ getBinding()

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

Definition at line 80 of file Wasm.h.

References llvm::wasm::WASM_SYMBOL_BINDING_MASK.

Referenced by isGlobal(), isLocal(), and isWeak().

◆ getVisibility()

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

Definition at line 88 of file Wasm.h.

References llvm::wasm::WASM_SYMBOL_VISIBILITY_MASK.

Referenced by isHidden().

◆ isFunction()

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

Definition at line 61 of file Wasm.h.

References DEBUG_FUNCTION_NAME, FUNCTION_EXPORT, and FUNCTION_IMPORT.

◆ isGlobal()

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

Definition at line 72 of file Wasm.h.

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

◆ isHidden()

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

◆ isLocal()

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

◆ isWeak()

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

◆ print()

void llvm::object::WasmSymbol::print ( raw_ostream Out) const
inline

Definition at line 92 of file Wasm.h.

References Type.

Referenced by dump(), and llvm::operator<<().

Member Data Documentation

◆ ElementIndex

uint32_t llvm::object::WasmSymbol::ElementIndex

Definition at line 56 of file Wasm.h.

Referenced by llvm::object::WasmObjectFile::getWasmSymbolValue().

◆ Flags

uint32_t llvm::object::WasmSymbol::Flags = 0

Definition at line 53 of file Wasm.h.

◆ ImportIndex

uint32_t llvm::object::WasmSymbol::ImportIndex

Definition at line 59 of file Wasm.h.

◆ Name

StringRef llvm::object::WasmSymbol::Name

◆ Section

uint32_t llvm::object::WasmSymbol::Section

Definition at line 52 of file Wasm.h.

Referenced by llvm::object::WasmObjectFile::getSymbolSection().

◆ Type

SymbolType llvm::object::WasmSymbol::Type

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