class MCSymbolWasm
Declaration
class MCSymbolWasm : public MCSymbol { /* full declaration omitted */ };
Description
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created and uniqued by the MCContext class. MCSymbols should only be constructed with valid names for the object file. If the symbol is defined/emitted into the current translation unit, the Section member is set to indicate what section it lives in. Otherwise, if it is a reference to an external entity, it has a null section.
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:16
Inherits from: MCSymbol
Member Variables
- private Optional<wasm::WasmSymbolType> Type
- private bool IsWeak = false
- private bool IsHidden = false
- private bool IsComdat = false
- private bool OmitFromLinkingSection = false
- private bool IsUsedInInitArray = false
- private bool IsUsedInGOT = false
- private Optional<llvm::StringRef> ImportModule
- private Optional<llvm::StringRef> ImportName
- private Optional<llvm::StringRef> ExportName
- private wasm::WasmSignature* Signature = nullptr
- private Optional<wasm::WasmGlobalType> GlobalType
- private Optional<wasm::WasmTableType> TableType
- private const llvm::MCExpr* SymbolSize = nullptr
- An expression describing how to calculate the size of a symbol. If a symbol has no size this field will be NULL.
Inherited from MCSymbol:
- protected FragmentAndHasName
- protected IsTemporary
- protected IsRedefinable
- protected IsUsed
- protected IsRegistered
- protected IsExternal
- protected IsPrivateExtern
- protected Kind
- protected IsUsedInReloc
- protected SymbolContents
- protected CommonAlignLog2
- protected Flags
- protected Index = 0
- protected
- protected static AbsolutePseudoFragment
Method Overview
- public MCSymbolWasm(const StringMapEntry<bool> * Name, bool isTemporary)
- public static bool classof(const llvm::MCSymbol * S)
- public llvm::StringRef getExportName() const
- public const wasm::WasmGlobalType & getGlobalType() const
- public llvm::StringRef getImportModule() const
- public llvm::StringRef getImportName() const
- public const wasm::WasmSignature * getSignature() const
- public const llvm::MCExpr * getSize() const
- public const wasm::WasmTableType & getTableType() const
- public Optional<wasm::WasmSymbolType> getType() const
- public bool hasExportName() const
- public bool hasImportModule() const
- public bool hasImportName() const
- public bool hasTableType() const
- public bool isComdat() const
- public bool isData() const
- public bool isExported() const
- public bool isFunction() const
- public bool isFunctionTable() const
- public bool isGlobal() const
- public bool isHidden() const
- public bool isNoStrip() const
- public bool isSection() const
- public bool isTLS() const
- public bool isTable() const
- public bool isTag() const
- public bool isUsedInGOT() const
- public bool isUsedInInitArray() const
- public bool isWeak() const
- public bool omitFromLinkingSection() const
- public void setComdat(bool isComdat)
- public void setExportName(llvm::StringRef Name)
- public void setExported() const
- public void setFunctionTable()
- public void setGlobalType(wasm::WasmGlobalType GT)
- public void setHidden(bool isHidden)
- public void setImportModule(llvm::StringRef Name)
- public void setImportName(llvm::StringRef Name)
- public void setNoStrip() const
- public void setOmitFromLinkingSection()
- public void setSignature(wasm::WasmSignature * Sig)
- public void setSize(const llvm::MCExpr * SS)
- public void setTLS() const
- public void setTableType(wasm::ValType VT)
- public void setTableType(wasm::WasmTableType TT)
- public void setType(wasm::WasmSymbolType type)
- public void setUsedInGOT() const
- public void setUsedInInitArray() const
- public void setWeak(bool isWeak)
Inherited from MCSymbol:
- public declareCommon
- public dump
- public getCommonAlignment
- public getCommonSize
- protected getFlags
- public getFragment
- public getIndex
- public getName
- public getOffset
- public getSection
- public getVariableValue
- public isAbsolute
- public isCOFF
- public isCommon
- public isDefined
- public isELF
- public isExternal
- public isGOFF
- public isInSection
- public isMachO
- public isPrivateExtern
- public isRedefinable
- public isRegistered
- public isTargetCommon
- public isTemporary
- public isUndefined
- public isUnset
- public isUsed
- public isUsedInReloc
- public isVariable
- public isWasm
- public isXCOFF
- protected modifyFlags
- public print
- public redefineIfPossible
- public setCommon
- public setExternal
- protected setFlags
- public setFragment
- public setIndex
- public setIsRegistered
- public setOffset
- public setPrivateExtern
- public setRedefinable
- public setUndefined
- public setUsedInReloc
- public setVariableValue
Methods
¶MCSymbolWasm(const StringMapEntry<bool>* Name,
bool isTemporary)
MCSymbolWasm(const StringMapEntry<bool>* Name,
bool isTemporary)
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:36
Parameters
- const StringMapEntry<bool>* Name
- bool isTemporary
¶static bool classof(const llvm::MCSymbol* S)
static bool classof(const llvm::MCSymbol* S)
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:38
Parameters
- const llvm::MCSymbol* S
¶llvm::StringRef getExportName() const
llvm::StringRef getExportName() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:110
¶const wasm::WasmGlobalType& getGlobalType() const
const wasm::WasmGlobalType& getGlobalType() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:131
¶llvm::StringRef getImportModule() const
llvm::StringRef getImportModule() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:90
¶llvm::StringRef getImportName() const
llvm::StringRef getImportName() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:102
¶const wasm::WasmSignature* getSignature() const
const wasm::WasmSignature* getSignature() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:128
¶const llvm::MCExpr* getSize() const
const llvm::MCExpr* getSize() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:40
¶const wasm::WasmTableType& getTableType() const
const wasm::WasmTableType& getTableType() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:138
¶Optional<wasm::WasmSymbolType> getType() const
Optional<wasm::WasmSymbolType> getType() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:51
¶bool hasExportName() const
bool hasExportName() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:109
¶bool hasImportModule() const
bool hasImportModule() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:89
¶bool hasImportName() const
bool hasImportName() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:101
¶bool hasTableType() const
bool hasTableType() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:137
¶bool isComdat() const
bool isComdat() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:80
¶bool isData() const
bool isData() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:45
¶bool isExported() const
bool isExported() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:55
¶bool isFunction() const
bool isFunction() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:43
¶bool isFunctionTable() const
bool isFunctionTable() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:113
¶bool isGlobal() const
bool isGlobal() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:46
¶bool isHidden() const
bool isHidden() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:77
¶bool isNoStrip() const
bool isNoStrip() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:62
¶bool isSection() const
bool isSection() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:48
¶bool isTLS() const
bool isTLS() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:69
¶bool isTable() const
bool isTable() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:47
¶bool isTag() const
bool isTag() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:49
¶bool isUsedInGOT() const
bool isUsedInGOT() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:123
¶bool isUsedInInitArray() const
bool isUsedInInitArray() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:126
¶bool isWeak() const
bool isWeak() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:74
¶bool omitFromLinkingSection() const
bool omitFromLinkingSection() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:86
¶void setComdat(bool isComdat)
void setComdat(bool isComdat)
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:81
Parameters
- bool isComdat
¶void setExportName(llvm::StringRef Name)
void setExportName(llvm::StringRef Name)
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:111
Parameters
- llvm::StringRef Name
¶void setExported() const
void setExported() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:58
¶void setFunctionTable()
void setFunctionTable()
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:117
¶void setGlobalType(wasm::WasmGlobalType GT)
void setGlobalType(wasm::WasmGlobalType GT)
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:135
Parameters
¶void setHidden(bool isHidden)
void setHidden(bool isHidden)
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:78
Parameters
- bool isHidden
¶void setImportModule(llvm::StringRef Name)
void setImportModule(llvm::StringRef Name)
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:99
Parameters
- llvm::StringRef Name
¶void setImportName(llvm::StringRef Name)
void setImportName(llvm::StringRef Name)
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:107
Parameters
- llvm::StringRef Name
¶void setNoStrip() const
void setNoStrip() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:65
¶void setOmitFromLinkingSection()
void setOmitFromLinkingSection()
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:87
¶void setSignature(wasm::WasmSignature* Sig)
void setSignature(wasm::WasmSignature* Sig)
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:129
Parameters
- wasm::WasmSignature* Sig
¶void setSize(const llvm::MCExpr* SS)
void setSize(const llvm::MCExpr* SS)
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:41
Parameters
- const llvm::MCExpr* SS
¶void setTLS() const
void setTLS() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:70
¶void setTableType(wasm::ValType VT)
void setTableType(wasm::ValType VT)
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:143
Parameters
- wasm::ValType VT
¶void setTableType(wasm::WasmTableType TT)
void setTableType(wasm::WasmTableType TT)
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:142
Parameters
¶void setType(wasm::WasmSymbolType type)
void setType(wasm::WasmSymbolType type)
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:53
Parameters
- wasm::WasmSymbolType type
¶void setUsedInGOT() const
void setUsedInGOT() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:122
¶void setUsedInInitArray() const
void setUsedInInitArray() const
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:125
¶void setWeak(bool isWeak)
void setWeak(bool isWeak)
Declared at: llvm/include/llvm/MC/MCSymbolWasm.h:75
Parameters
- bool isWeak