LLVM  5.0.0
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:
[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)
 
bool isWeak () 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
 

Detailed Description

Definition at line 35 of file Wasm.h.

Member Enumeration Documentation

Enumerator
FUNCTION_IMPORT 
FUNCTION_EXPORT 
GLOBAL_IMPORT 
GLOBAL_EXPORT 
DEBUG_FUNCTION_NAME 

Definition at line 37 of file Wasm.h.

Constructor & Destructor Documentation

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

Definition at line 45 of file Wasm.h.

Member Function Documentation

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

Definition at line 68 of file Wasm.h.

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

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

Definition at line 58 of file Wasm.h.

References Flags, and llvm::wasm::WASM_SYMBOL_FLAG_WEAK.

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

Definition at line 62 of file Wasm.h.

References ElementIndex, Flags, Name, and Type.

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

Member Data Documentation

uint32_t llvm::object::WasmSymbol::ElementIndex

Definition at line 56 of file Wasm.h.

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

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

Definition at line 52 of file Wasm.h.

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

StringRef llvm::object::WasmSymbol::Name

Definition at line 49 of file Wasm.h.

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

uint32_t llvm::object::WasmSymbol::Section

Definition at line 51 of file Wasm.h.

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

SymbolType llvm::object::WasmSymbol::Type

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