mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
MC: Switch MCContext value table to storing MCExprs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84228 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -52,20 +52,3 @@ MCSymbol *MCContext::CreateTemporarySymbol(const StringRef &Name) {
|
||||
MCSymbol *MCContext::LookupSymbol(const StringRef &Name) const {
|
||||
return Symbols.lookup(Name);
|
||||
}
|
||||
|
||||
void MCContext::ClearSymbolValue(const MCSymbol *Sym) {
|
||||
SymbolValues.erase(Sym);
|
||||
}
|
||||
|
||||
void MCContext::SetSymbolValue(const MCSymbol *Sym, const MCValue &Value) {
|
||||
SymbolValues[Sym] = Value;
|
||||
}
|
||||
|
||||
const MCValue *MCContext::GetSymbolValue(const MCSymbol *Sym) const {
|
||||
DenseMap<const MCSymbol*, MCValue>::iterator it = SymbolValues.find(Sym);
|
||||
|
||||
if (it == SymbolValues.end())
|
||||
return 0;
|
||||
|
||||
return &it->second;
|
||||
}
|
||||
|
Reference in New Issue
Block a user