17 const MCSection *MCSymbol::AbsolutePseudoSection =
21 if ((C < 'a' || C >
'z') &&
22 (C < 'A' || C >
'Z') &&
23 (C < '0' || C >
'9') &&
24 C !=
'_' && C !=
'$' && C !=
'.' && C !=
'@')
32 assert(!Str.
empty() &&
"Cannot create an empty MCSymbol");
36 for (
unsigned i = 0, e = Str.
size(); i != e; ++i)
55 assert(!IsUsed &&
"Cannot set a variable that has already been used.");
56 assert(Value &&
"Invalid variable value!");
78 for (
unsigned I = 0, E = Name.
size();
I != E; ++
I) {
90 #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
const MCSymbol & getSymbol() const
size_t size() const
size - Get the string size.
static bool isAcceptableChar(char C)
const MCExpr * getVariableValue() const
getVariableValue() - Get the value for variable symbols.
static bool NameNeedsQuoting(StringRef Str)
const MCSection * FindAssociatedSection() const
void setUndefined()
setUndefined - Mark the symbol as undefined.
void setVariableValue(const MCExpr *Value)
raw_ostream & dbgs()
dbgs - Return a circular-buffered debug stream.
StringRef getName() const
getName - Get the symbol name.
const MCSymbol & AliasedSymbol() const
void setSection(const MCSection &S)
setSection - Mark the symbol as defined in the section S.
References to labels and assigned expressions.
bool isVariable() const
isVariable - Check if this is a variable symbol.
LLVM Value Representation.
void print(raw_ostream &OS) const
print - Print the value to the stream OS.
void dump() const
dump - Print the value to stderr.
bool empty() const
empty - Check if the string is empty.