8 #ifndef LLVM_MC_MCSYMBOLXCOFF_H 9 #define LLVM_MC_MCSYMBOLXCOFF_H 29 "Redefining StorageClass of XCOFF MCSymbol.");
35 "StorageClass not set on XCOFF MCSymbol.");
40 assert((!ContainingCsect || ContainingCsect == C) &&
41 "Trying to set a containing csect that doesn't match the one that" 42 "this symbol is already mapped to.");
48 "Trying to get containing csect but none was set.");
49 return ContainingCsect;
56 if (name.
back() ==
']') {
58 std::tie(lhs, rhs) = name.
rsplit(
'[');
59 assert(!rhs.
empty() &&
"Invalid SMC format in XCOFF symbol.");
72 #endif // LLVM_MC_MCSYMBOLXCOFF_H
This class represents lattice values for constants.
StringMapEntry - This is used to represent one value that is inserted into a StringMap.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
LLVM_NODISCARD std::pair< StringRef, StringRef > rsplit(StringRef Separator) const
Split into two substrings around the last occurrence of a separator string.
LLVM_NODISCARD bool empty() const
empty - Check if the string is empty.
StringRef getUnqualifiedName() const
static bool classof(const MCSymbol *S)
const T & getValue() const LLVM_LVALUE_FUNCTION
MCSymbolXCOFF(const StringMapEntry< bool > *Name, bool isTemporary)
bool isTemporary() const
isTemporary - Check if this is an assembler temporary symbol.
MCSectionXCOFF * getContainingCsect() const
void setStorageClass(XCOFF::StorageClass SC)
LLVM_NODISCARD char back() const
back - Get the last character in the string.
CHAIN = SC CHAIN, Imm128 - System call.
bool hasContainingCsect() const
StringRef getName() const
getName - Get the symbol name.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
XCOFF::StorageClass getStorageClass() const
void setContainingCsect(MCSectionXCOFF *C)
StringRef - Represent a constant reference to a string, i.e.