aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCContext.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-10-16 01:33:11 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-10-16 01:33:11 +0000
commit5ad36277631403be640bf9fb0fad79ce7e1f262a (patch)
tree47c1f916722dbb2cd73459c9563f3cfab15dceef /lib/MC/MCContext.cpp
parent5ae95c36f52cdc38b9e68c0db0115fa286657f4c (diff)
downloadexternal_llvm-5ad36277631403be640bf9fb0fad79ce7e1f262a.zip
external_llvm-5ad36277631403be640bf9fb0fad79ce7e1f262a.tar.gz
external_llvm-5ad36277631403be640bf9fb0fad79ce7e1f262a.tar.bz2
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
Diffstat (limited to 'lib/MC/MCContext.cpp')
-rw-r--r--lib/MC/MCContext.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp
index f36564a..db59f7f 100644
--- a/lib/MC/MCContext.cpp
+++ b/lib/MC/MCContext.cpp
@@ -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;
-}