LLVM  6.0.0svn
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
llvm::MCSymbol Class Reference

MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created and uniqued by the MCContext class. More...

#include "llvm/MC/MCSymbol.h"

Inheritance diagram for llvm::MCSymbol:
Inheritance graph
[legend]
Collaboration diagram for llvm::MCSymbol:
Collaboration graph
[legend]

Public Member Functions

 MCSymbol (const MCSymbol &)=delete
 
MCSymboloperator= (const MCSymbol &)=delete
 
StringRef getName () const
 getName - Get the symbol name. More...
 
bool isRegistered () const
 
void setIsRegistered (bool Value) const
 
void setUsedInReloc () const
 
bool isUsedInReloc () const
 
uint32_t getIndex () const
 Get the (implementation defined) index. More...
 
void setIndex (uint32_t Value) const
 Set the (implementation defined) index. More...
 
uint64_t getOffset () const
 
void setOffset (uint64_t Value)
 
uint64_t getCommonSize () const
 Return the size of a 'common' symbol. More...
 
void setCommon (uint64_t Size, unsigned Align)
 Mark this symbol as being 'common'. More...
 
unsigned getCommonAlignment () const
 Return the alignment of a 'common' symbol. More...
 
bool declareCommon (uint64_t Size, unsigned Align)
 Declare this symbol as being 'common'. More...
 
bool isCommon () const
 Is this a 'common' symbol. More...
 
MCFragmentgetFragment (bool SetUsed=true) const
 
bool isExternal () const
 
void setExternal (bool Value) const
 
bool isPrivateExtern () const
 
void setPrivateExtern (bool Value)
 
void print (raw_ostream &OS, const MCAsmInfo *MAI) const
 print - Print the value to the stream OS. More...
 
void dump () const
 dump - Print the value to stderr. More...
 
Accessors
bool isTemporary () const
 isTemporary - Check if this is an assembler temporary symbol. More...
 
bool isUsed () const
 isUsed - Check if this is used. More...
 
void setUsed (bool Value) const
 
bool isRedefinable () const
 Check if this symbol is redefinable. More...
 
void setRedefinable (bool Value)
 Mark this symbol as redefinable. More...
 
void redefineIfPossible ()
 Prepare this symbol to be redefined. More...
 
Associated Sections
bool isDefined (bool SetUsed=true) const
 isDefined - Check if this symbol is defined (i.e., it has an address). More...
 
bool isInSection (bool SetUsed=true) const
 isInSection - Check if this symbol is defined in some section (i.e., it is defined but not absolute). More...
 
bool isUndefined (bool SetUsed=true) const
 isUndefined - Check if this symbol undefined (i.e., implicitly defined). More...
 
bool isAbsolute (bool SetUsed=true) const
 isAbsolute - Check if this is an absolute symbol. More...
 
MCSectiongetSection (bool SetUsed=true) const
 Get the section associated with a defined, non-absolute symbol. More...
 
void setFragment (MCFragment *F) const
 Mark the symbol as defined in the fragment F. More...
 
void setUndefined ()
 Mark the symbol as undefined. More...
 
bool isELF () const
 
bool isCOFF () const
 
bool isMachO () const
 
bool isWasm () const
 
Variable Symbols
bool isVariable () const
 isVariable - Check if this is a variable symbol. More...
 
const MCExprgetVariableValue (bool SetUsed=true) const
 getVariableValue - Get the value for variable symbols. More...
 
void setVariableValue (const MCExpr *Value)
 

Protected Types

enum  SymbolKind {
  SymbolKindUnset, SymbolKindCOFF, SymbolKindELF, SymbolKindMachO,
  SymbolKindWasm
}
 The kind of the symbol. More...
 
enum  Contents : uint8_t { SymContentsUnset, SymContentsOffset, SymContentsVariable, SymContentsCommon }
 A symbol can contain an Offset, or Value, or be Common, but never more than one of these. More...
 
enum  : unsigned { NumCommonAlignmentBits = 5 }
 The alignment of the symbol, if it is 'common', or -1. More...
 
enum  : unsigned { NumFlagsBits = 16 }
 The Flags field is used by object file implementations to store additional per symbol information which is not easily classified. More...
 
using NameEntryStorageTy = union { const StringMapEntry< bool > *NameEntry
 The name for a symbol. More...
 

Protected Member Functions

 MCSymbol (SymbolKind Kind, const StringMapEntry< bool > *Name, bool isTemporary)
 
void * operator new (size_t s, const StringMapEntry< bool > *Name, MCContext &Ctx)
 
uint32_t getFlags () const
 Get the (implementation defined) symbol flags. More...
 
void setFlags (uint32_t Value) const
 Set the (implementation defined) symbol flags. More...
 
void modifyFlags (uint32_t Value, uint32_t Mask) const
 Modify the flags via a mask. More...
 

Protected Attributes

PointerIntPair< MCFragment *, 1 > FragmentAndHasName
 If a symbol has a Fragment, the section is implied, so we only need one pointer. More...
 
unsigned IsTemporary: 1
 IsTemporary - True if this is an assembler temporary label, which typically does not survive in the .o file's symbol table. More...
 
unsigned IsRedefinable: 1
 True if this symbol can be redefined. More...
 
unsigned IsUsed: 1
 IsUsed - True if this symbol has been used. More...
 
unsigned IsRegistered: 1
 
unsigned IsExternal: 1
 This symbol is visible outside this translation unit. More...
 
unsigned IsPrivateExtern: 1
 This symbol is private extern. More...
 
unsigned Kind: 3
 LLVM RTTI discriminator. More...
 
unsigned IsUsedInReloc: 1
 True if we have created a relocation that uses this symbol. More...
 
unsigned SymbolContents: 2
 This is actually a Contents enumerator, but is unsigned to avoid sign extension and achieve better bitpacking with MSVC. More...
 
unsigned CommonAlignLog2: NumCommonAlignmentBits
 
uint32_t Flags: NumFlagsBits
 
uint32_t Index = 0
 Index field, for use by the object file implementation. More...
 
union {
   uint64_t   Offset
 The offset to apply to the fragment address to form this symbol's value. More...
 
   uint64_t   CommonSize
 The size of the symbol, if it is 'common'. More...
 
   const MCExpr *   Value
 If non-null, the value for a variable symbol. More...
 
}; 
 
uint64_t AlignmentPadding
 

Static Protected Attributes

static MCFragmentAbsolutePseudoFragment = &SentinelFragment
 

Friends

class MCExpr
 
class MCContext
 

Detailed 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.

Definition at line 42 of file MCSymbol.h.

Member Typedef Documentation

◆ NameEntryStorageTy

using llvm::MCSymbol::NameEntryStorageTy = union { const StringMapEntry<bool> *NameEntry
protected

The name for a symbol.

MCSymbol contains a uint64_t so is probably aligned to 8. On a 32-bit system, the name is a pointer so isn't going to satisfy the 8 byte alignment of uint64_t. Account for that here.

Definition at line 149 of file MCSymbol.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : unsigned
protected

The alignment of the symbol, if it is 'common', or -1.

The alignment is stored as log2(align) + 1. This allows all values from 0 to 2^31 to be stored which is every power of 2 representable by an unsigned.

Enumerator
NumCommonAlignmentBits 

Definition at line 118 of file MCSymbol.h.

◆ anonymous enum

anonymous enum : unsigned
protected

The Flags field is used by object file implementations to store additional per symbol information which is not easily classified.

Enumerator
NumFlagsBits 

Definition at line 123 of file MCSymbol.h.

◆ Contents

enum llvm::MCSymbol::Contents : uint8_t
protected

A symbol can contain an Offset, or Value, or be Common, but never more than one of these.

Enumerator
SymContentsUnset 
SymContentsOffset 
SymContentsVariable 
SymContentsCommon 

Definition at line 56 of file MCSymbol.h.

◆ SymbolKind

The kind of the symbol.

If it is any value other than unset then this class is actually one of the appropriate subclasses of MCSymbol.

Enumerator
SymbolKindUnset 
SymbolKindCOFF 
SymbolKindELF 
SymbolKindMachO 
SymbolKindWasm 

Definition at line 46 of file MCSymbol.h.

Constructor & Destructor Documentation

◆ MCSymbol() [1/2]

llvm::MCSymbol::MCSymbol ( SymbolKind  Kind,
const StringMapEntry< bool > *  Name,
bool  isTemporary 
)
inlineprotected

◆ MCSymbol() [2/2]

llvm::MCSymbol::MCSymbol ( const MCSymbol )
delete

Member Function Documentation

◆ declareCommon()

bool llvm::MCSymbol::declareCommon ( uint64_t  Size,
unsigned  Align 
)
inline

Declare this symbol as being 'common'.

Parameters
Size- The size of the symbol.
Align- The alignment of the symbol.
Returns
True if symbol was already declared as a different type

Definition at line 368 of file MCSymbol.h.

References assert(), CommonSize, getCommonAlignment(), getOffset(), isCommon(), and setCommon().

◆ dump()

LLVM_DUMP_METHOD void MCSymbol::dump ( ) const

dump - Print the value to stderr.

Definition at line 85 of file MCSymbol.cpp.

References llvm::dbgs().

Referenced by setPrivateExtern().

◆ getCommonAlignment()

unsigned llvm::MCSymbol::getCommonAlignment ( ) const
inline

Return the alignment of a 'common' symbol.

Definition at line 358 of file MCSymbol.h.

References assert(), CommonAlignLog2, and isCommon().

Referenced by declareCommon(), and llvm::MCSymbolMachO::getEncodedFlags().

◆ getCommonSize()

uint64_t llvm::MCSymbol::getCommonSize ( ) const
inline

Return the size of a 'common' symbol.

Definition at line 335 of file MCSymbol.h.

References assert(), CommonSize, and isCommon().

Referenced by getSymbolValue(), and llvm::MachObjectWriter::writeNlist().

◆ getFlags()

uint32_t llvm::MCSymbol::getFlags ( ) const
inlineprotected

◆ getFragment()

MCFragment* llvm::MCSymbol::getFragment ( bool  SetUsed = true) const
inline

◆ getIndex()

uint32_t llvm::MCSymbol::getIndex ( ) const
inline

Get the (implementation defined) index.

Definition at line 311 of file MCSymbol.h.

References Index.

Referenced by isAssociative(), isWeak(), and writeFragment().

◆ getName()

StringRef llvm::MCSymbol::getName ( ) const
inline

getName - Get the symbol name.

Definition at line 203 of file MCSymbol.h.

References llvm::PointerIntPair< PointerTy, IntBits, IntType, PtrTraits, Info >::getInt().

Referenced by llvm::MachObjectWriter::bindIndirectSymbols(), canGoAfterDWARF(), canUseLocalRelocation(), CheckBaseRegAndIndexRegAndScale(), createPPCMCAsmInfo(), llvm::MipsTargetAsmStreamer::emitDirectiveCpsetup(), llvm::MipsTargetAsmStreamer::emitDirectiveEnt(), llvm::EHStreamer::emitExceptionTable(), llvm::MipsAsmPrinter::EmitFunctionBodyEnd(), llvm::AsmPrinter::EmitFunctionEntryLabel(), llvm::AsmPrinter::EmitGlobalVariable(), llvm::WebAssemblyTargetAsmStreamer::emitIndirectFunctionType(), llvm::TargetLoweringObjectFileELF::emitPersonalityValue(), encodeBase64StringEntry(), EvaluateCRExpr(), GetAEABIUnwindPersonalityName(), getARMFixupKindMachOInfo(), llvm::MCContext::getAssociativeCOFFSection(), llvm::MCAsmLayout::getBaseSymbol(), llvm::TargetLoweringObjectFileELF::getCFIPersonalitySymbol(), llvm::MCContext::getCOFFSection(), llvm::MCContext::getELFSection(), llvm::MCSymbolMachO::getEncodedFlags(), llvm::TargetLoweringObjectFileCOFF::getExplicitSectionGlobal(), getFixupKindLog2Size(), getFixupOffset(), llvm::TargetLoweringObjectFileMachO::getIndirectSymViaGOTPCRel(), getLabelOffset(), llvm::TargetLoweringObjectFileCOFF::getSectionForJumpTable(), getStaticStructorSection(), llvm::MachObjectWriter::getSymbolAddress(), getSymbolOffsetImpl(), llvm::RecordStreamer::getSymbolState(), getSymbolValue(), llvm::MCContext::getWasmSection(), handleSymverAliases(), hasGOTReference(), llvm::HexagonMCELFStreamer::HexagonMCEmitCommonSymbol(), isWeak(), llvm::MCGenDwarfLabelEntry::Make(), llvm::MCExpr::print(), print(), printFPOReg(), llvm::MipsAsmPrinter::printOperand(), llvm::NVPTXInstPrinter::printProtoIdent(), printSImmOperand(), llvm::MCSectionELF::PrintSwitchToSection(), printSymbolOperand(), llvm::PPCInstPrinter::printTLSCall(), RefineErrorLoc(), llvm::FaultMaps::reset(), llvm::TargetLoweringObjectFileCOFF::SelectSectionForGlobal(), StartsWithGlobalOffsetTable(), and llvm::MachObjectWriter::writeObject().

◆ getOffset()

uint64_t llvm::MCSymbol::getOffset ( ) const
inline

◆ getSection()

MCSection& llvm::MCSymbol::getSection ( bool  SetUsed = true) const
inline

◆ getVariableValue()

const MCExpr* llvm::MCSymbol::getVariableValue ( bool  SetUsed = true) const
inline

◆ isAbsolute()

bool llvm::MCSymbol::isAbsolute ( bool  SetUsed = true) const
inline

isAbsolute - Check if this is an absolute symbol.

Definition at line 263 of file MCSymbol.h.

References AbsolutePseudoFragment, and getFragment().

Referenced by isInSection(), isWeak(), and llvm::MachObjectWriter::writeNlist().

◆ isCOFF()

bool llvm::MCSymbol::isCOFF ( ) const
inline

Definition at line 284 of file MCSymbol.h.

References Kind, and SymbolKindCOFF.

Referenced by llvm::MCSymbolCOFF::classof().

◆ isCommon()

bool llvm::MCSymbol::isCommon ( ) const
inline

◆ isDefined()

bool llvm::MCSymbol::isDefined ( bool  SetUsed = true) const
inline

◆ isELF()

bool llvm::MCSymbol::isELF ( ) const
inline

◆ isExternal()

bool llvm::MCSymbol::isExternal ( ) const
inline

◆ isInSection()

bool llvm::MCSymbol::isInSection ( bool  SetUsed = true) const
inline

◆ isMachO()

bool llvm::MCSymbol::isMachO ( ) const
inline

Definition at line 286 of file MCSymbol.h.

References Kind, and SymbolKindMachO.

Referenced by llvm::MCSymbolMachO::classof().

◆ isPrivateExtern()

bool llvm::MCSymbol::isPrivateExtern ( ) const
inline

Definition at line 395 of file MCSymbol.h.

References IsPrivateExtern.

Referenced by canGoAfterDWARF(), and llvm::MachObjectWriter::writeNlist().

◆ isRedefinable()

bool llvm::MCSymbol::isRedefinable ( ) const
inline

Check if this symbol is redefinable.

Definition at line 227 of file MCSymbol.h.

References IsRedefinable.

◆ isRegistered()

bool llvm::MCSymbol::isRegistered ( ) const
inline

Definition at line 210 of file MCSymbol.h.

References IsRegistered.

Referenced by llvm::MCAssembler::registerSymbol().

◆ isTemporary()

bool llvm::MCSymbol::isTemporary ( ) const
inline

◆ isUndefined()

bool llvm::MCSymbol::isUndefined ( bool  SetUsed = true) const
inline

◆ isUsed()

bool llvm::MCSymbol::isUsed ( ) const
inline

isUsed - Check if this is used.

Definition at line 223 of file MCSymbol.h.

References IsUsed.

Referenced by llvm::MCParserUtils::parseAssignmentExpression().

◆ isUsedInReloc()

bool llvm::MCSymbol::isUsedInReloc ( ) const
inline

◆ isVariable()

bool llvm::MCSymbol::isVariable ( ) const
inline

◆ isWasm()

bool llvm::MCSymbol::isWasm ( ) const
inline

Definition at line 288 of file MCSymbol.h.

References Kind, and SymbolKindWasm.

Referenced by llvm::MCSymbolWasm::classof().

◆ modifyFlags()

void llvm::MCSymbol::modifyFlags ( uint32_t  Value,
uint32_t  Mask 
) const
inlineprotected

◆ operator new()

void * MCSymbol::operator new ( size_t  s,
const StringMapEntry< bool > *  Name,
MCContext Ctx 
)
protected

◆ operator=()

MCSymbol& llvm::MCSymbol::operator= ( const MCSymbol )
delete

Referenced by MCSymbol().

◆ print()

void MCSymbol::print ( raw_ostream OS,
const MCAsmInfo MAI 
) const

◆ redefineIfPossible()

void llvm::MCSymbol::redefineIfPossible ( )
inline

◆ setCommon()

void llvm::MCSymbol::setCommon ( uint64_t  Size,
unsigned  Align 
)
inline

Mark this symbol as being 'common'.

Parameters
Size- The size of the symbol.
Align- The alignment of the symbol.

Definition at line 344 of file MCSymbol.h.

References assert(), CommonAlignLog2, CommonSize, getOffset(), llvm::isPowerOf2_32(), llvm::Log2_32(), NumCommonAlignmentBits, llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Size, SymbolContents, and SymContentsCommon.

Referenced by canGoAfterDWARF(), and declareCommon().

◆ setExternal()

void llvm::MCSymbol::setExternal ( bool  Value) const
inline

◆ setFlags()

void llvm::MCSymbol::setFlags ( uint32_t  Value) const
inlineprotected

◆ setFragment()

void llvm::MCSymbol::setFragment ( MCFragment F) const
inline

◆ setIndex()

void llvm::MCSymbol::setIndex ( uint32_t  Value) const
inline

Set the (implementation defined) index.

Definition at line 316 of file MCSymbol.h.

References Value.

Referenced by isAssociative().

◆ setIsRegistered()

void llvm::MCSymbol::setIsRegistered ( bool  Value) const
inline

Definition at line 211 of file MCSymbol.h.

References IsRegistered, and Value.

Referenced by llvm::MCAssembler::registerSymbol().

◆ setOffset()

void llvm::MCSymbol::setOffset ( uint64_t  Value)
inline

◆ setPrivateExtern()

void llvm::MCSymbol::setPrivateExtern ( bool  Value)
inline

Definition at line 396 of file MCSymbol.h.

References dump(), IsPrivateExtern, print(), and Value.

Referenced by canGoAfterDWARF().

◆ setRedefinable()

void llvm::MCSymbol::setRedefinable ( bool  Value)
inline

Mark this symbol as redefinable.

Definition at line 229 of file MCSymbol.h.

References IsRedefinable, and Value.

Referenced by llvm::MCParserUtils::parseAssignmentExpression().

◆ setUndefined()

void llvm::MCSymbol::setUndefined ( )
inline

Mark the symbol as undefined.

Definition at line 280 of file MCSymbol.h.

References llvm::PointerIntPair< PointerTy, IntBits, IntType, PtrTraits, Info >::setPointer().

Referenced by redefineIfPossible(), and setVariableValue().

◆ setUsed()

void llvm::MCSymbol::setUsed ( bool  Value) const
inline

Definition at line 224 of file MCSymbol.h.

References IsUsed, and Value.

◆ setUsedInReloc()

void llvm::MCSymbol::setUsedInReloc ( ) const
inline

Definition at line 213 of file MCSymbol.h.

References IsUsedInReloc.

Referenced by canUseLocalRelocation(), and getFixupKindLog2Size().

◆ setVariableValue()

void MCSymbol::setVariableValue ( const MCExpr Value)

Friends And Related Function Documentation

◆ MCContext

friend class MCContext
friend

Definition at line 142 of file MCSymbol.h.

◆ MCExpr

friend class MCExpr
friend

Definition at line 141 of file MCSymbol.h.

Member Data Documentation

◆ @243

union { ... }

◆ AbsolutePseudoFragment

MCFragment * MCSymbol::AbsolutePseudoFragment = &SentinelFragment
staticprotected

Definition at line 64 of file MCSymbol.h.

Referenced by llvm::MCExpr::findAssociatedFragment(), and isAbsolute().

◆ AlignmentPadding

uint64_t llvm::MCSymbol::AlignmentPadding
protected

Definition at line 150 of file MCSymbol.h.

◆ CommonAlignLog2

unsigned llvm::MCSymbol::CommonAlignLog2
protected

Definition at line 119 of file MCSymbol.h.

Referenced by getCommonAlignment(), and setCommon().

◆ CommonSize

uint64_t llvm::MCSymbol::CommonSize

The size of the symbol, if it is 'common'.

Definition at line 134 of file MCSymbol.h.

Referenced by declareCommon(), getCommonSize(), and setCommon().

◆ Flags

uint32_t llvm::MCSymbol::Flags
mutableprotected

Definition at line 124 of file MCSymbol.h.

Referenced by llvm::MCSymbolMachO::getEncodedFlags(), getFlags(), modifyFlags(), and setFlags().

◆ FragmentAndHasName

PointerIntPair<MCFragment *, 1> llvm::MCSymbol::FragmentAndHasName
mutableprotected

If a symbol has a Fragment, the section is implied, so we only need one pointer.

The special AbsolutePseudoFragment value is for absolute symbols. If this is a variable symbol, this caches the variable value's fragment. FIXME: We might be able to simplify this by having the asm streamer create dummy fragments. If this is a section, then it gives the symbol is defined in. This is null for undefined symbols.

If this is a fragment, then it gives the fragment this symbol's value is relative to, if any.

For the 'HasName' integer, this is true if this symbol is named. A named symbol will have a pointer to the name allocated in the bytes immediately prior to the MCSymbol.

Definition at line 81 of file MCSymbol.h.

◆ Index

uint32_t llvm::MCSymbol::Index = 0
mutableprotected

Index field, for use by the object file implementation.

Definition at line 127 of file MCSymbol.h.

Referenced by getIndex().

◆ IsExternal

unsigned llvm::MCSymbol::IsExternal
mutableprotected

This symbol is visible outside this translation unit.

Definition at line 97 of file MCSymbol.h.

Referenced by isExternal(), and setExternal().

◆ IsPrivateExtern

unsigned llvm::MCSymbol::IsPrivateExtern
mutableprotected

This symbol is private extern.

Definition at line 100 of file MCSymbol.h.

Referenced by isPrivateExtern(), and setPrivateExtern().

◆ IsRedefinable

unsigned llvm::MCSymbol::IsRedefinable
protected

True if this symbol can be redefined.

Definition at line 89 of file MCSymbol.h.

Referenced by isRedefinable(), redefineIfPossible(), and setRedefinable().

◆ IsRegistered

unsigned llvm::MCSymbol::IsRegistered
mutableprotected

Definition at line 94 of file MCSymbol.h.

Referenced by isRegistered(), and setIsRegistered().

◆ IsTemporary

unsigned llvm::MCSymbol::IsTemporary
protected

IsTemporary - True if this is an assembler temporary label, which typically does not survive in the .o file's symbol table.

Usually "Lfoo" or ".foo".

Definition at line 86 of file MCSymbol.h.

Referenced by isTemporary().

◆ IsUsed

unsigned llvm::MCSymbol::IsUsed
mutableprotected

IsUsed - True if this symbol has been used.

Definition at line 92 of file MCSymbol.h.

Referenced by getVariableValue(), isUsed(), setUsed(), and setVariableValue().

◆ IsUsedInReloc

unsigned llvm::MCSymbol::IsUsedInReloc
mutableprotected

True if we have created a relocation that uses this symbol.

Definition at line 107 of file MCSymbol.h.

Referenced by isUsedInReloc(), and setUsedInReloc().

◆ Kind

unsigned llvm::MCSymbol::Kind
protected

LLVM RTTI discriminator.

This is actually a SymbolKind enumerator, but is unsigned to avoid sign extension and achieve better bitpacking with MSVC.

Definition at line 104 of file MCSymbol.h.

Referenced by isCOFF(), isELF(), isMachO(), and isWasm().

◆ Offset

uint64_t llvm::MCSymbol::Offset

The offset to apply to the fragment address to form this symbol's value.

Definition at line 131 of file MCSymbol.h.

Referenced by getOffset(), MCSymbol(), and setOffset().

◆ SymbolContents

unsigned llvm::MCSymbol::SymbolContents
protected

This is actually a Contents enumerator, but is unsigned to avoid sign extension and achieve better bitpacking with MSVC.

Definition at line 111 of file MCSymbol.h.

Referenced by getOffset(), isCommon(), isVariable(), redefineIfPossible(), setCommon(), setOffset(), and setVariableValue().

◆ Value

const MCExpr* llvm::MCSymbol::Value

If non-null, the value for a variable symbol.

Definition at line 137 of file MCSymbol.h.

Referenced by getVariableValue(), setExternal(), setFlags(), setIndex(), setIsRegistered(), setOffset(), setPrivateExtern(), setRedefinable(), setUsed(), and setVariableValue().


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