diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-26 09:16:57 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-26 09:16:57 +0000 |
commit | 383cbff0311237bfd60daaa77d07bc9785a07ee8 (patch) | |
tree | b971534b71a56568109f19d210ac1b0242a9f52a /lib/MC/MCContext.cpp | |
parent | d644c32a52c36c2e52c91512d156d4332772cb1f (diff) |
llvm-mc: Change MCContext value table to take const MCSymbol*s.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80079 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCContext.cpp')
-rw-r--r-- | lib/MC/MCContext.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp index 061d7c2498..5a3e7f661e 100644 --- a/lib/MC/MCContext.cpp +++ b/lib/MC/MCContext.cpp @@ -54,16 +54,16 @@ MCSymbol *MCContext::LookupSymbol(const StringRef &Name) const { return Symbols.lookup(Name); } -void MCContext::ClearSymbolValue(MCSymbol *Sym) { +void MCContext::ClearSymbolValue(const MCSymbol *Sym) { SymbolValues.erase(Sym); } -void MCContext::SetSymbolValue(MCSymbol *Sym, const MCValue &Value) { +void MCContext::SetSymbolValue(const MCSymbol *Sym, const MCValue &Value) { SymbolValues[Sym] = Value; } -const MCValue *MCContext::GetSymbolValue(MCSymbol *Sym) const { - DenseMap<MCSymbol*, MCValue>::iterator it = SymbolValues.find(Sym); +const MCValue *MCContext::GetSymbolValue(const MCSymbol *Sym) const { + DenseMap<const MCSymbol*, MCValue>::iterator it = SymbolValues.find(Sym); if (it == SymbolValues.end()) return 0; |