9 #ifndef LLVM_MC_MCSYMBOLCOFF_H
10 #define LLVM_MC_MCSYMBOLCOFF_H
18 mutable uint16_t
Type;
20 enum SymbolFlags : uint16_t {
21 SF_ClassMask = 0x00FF,
24 SF_WeakExternal = 0x0100,
40 return (
getFlags() & SF_ClassMask) >> SF_ClassShift;
43 modifyFlags(StorageClass << SF_ClassShift, SF_ClassMask);
void setType(uint16_t Ty) const
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
MCSymbolCOFF(const StringMapEntry< bool > *Name, bool isTemporary)
COFF::SymbolStorageClass StorageClass
void setClass(uint16_t StorageClass) const
bool isWeakExternal() const
uint32_t getFlags() const
Get the (implementation defined) symbol flags.
void setIsWeakExternal() const
uint16_t getClass() const
void modifyFlags(uint32_t Value, uint32_t Mask) const
Modify the flags via a mask.
The instances of the Type class are immutable: once they are created, they are never changed...
static bool classof(const MCSymbol *S)
bool isTemporary() const
isTemporary - Check if this is an assembler temporary symbol.
void setIsSafeSEH() const