LLVM 20.0.0git
Public Attributes | List of all members
llvm::MCSymbolTableValue Struct Reference

The value for an entry in the symbol table of an MCContext. More...

#include "llvm/MC/MCSymbolTableEntry.h"

Public Attributes

MCSymbolSymbol = nullptr
 The symbol associated with the name, if any.
 
unsigned NextUniqueID = 0
 The next ID to dole out to an unnamed assembler temporary symbol with the prefix (symbol table key).
 
bool Used = false
 Whether the name associated with this value is used for a symbol.
 

Detailed Description

The value for an entry in the symbol table of an MCContext.

This is in a separate file, because MCSymbol uses MCSymbolTableEntry (see below) to reuse the name that is stored in the symbol table.

Definition at line 22 of file MCSymbolTableEntry.h.

Member Data Documentation

◆ NextUniqueID

unsigned llvm::MCSymbolTableValue::NextUniqueID = 0

The next ID to dole out to an unnamed assembler temporary symbol with the prefix (symbol table key).

Definition at line 28 of file MCSymbolTableEntry.h.

◆ Symbol

MCSymbol* llvm::MCSymbolTableValue::Symbol = nullptr

The symbol associated with the name, if any.

Definition at line 24 of file MCSymbolTableEntry.h.

Referenced by llvm::MCContext::lookupSymbol().

◆ Used

bool llvm::MCSymbolTableValue::Used = false

Whether the name associated with this value is used for a symbol.

This is not necessarily true: sometimes, we use a symbol table value without an associated symbol for accessing NextUniqueID when a suffix is added to a name. However, Used might be true even if Symbol is nullptr: temporary named symbols are not added to the symbol table.

Definition at line 35 of file MCSymbolTableEntry.h.


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