summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCContext.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-13 00:37:15 +0000
committerChris Lattner <sabre@nondot.org>2009-08-13 00:37:15 +0000
commit04b4700ebcec1f877cef4f87979b82f29969f3af (patch)
treec6e9db8e74eb56f944a7f4150d873a004ed8aa10 /llvm/lib/MC/MCContext.cpp
parent6bb66bbd0661028ee007cbe62c7045a166ab95d4 (diff)
downloadbcm5719-llvm-04b4700ebcec1f877cef4f87979b82f29969f3af.tar.gz
bcm5719-llvm-04b4700ebcec1f877cef4f87979b82f29969f3af.zip
sink uniquing of sections out of MCContext into the ELF and PECOFF TLOF implementations.
MCContext no longer maintains a string -> section map. llvm-svn: 78874
Diffstat (limited to 'llvm/lib/MC/MCContext.cpp')
-rw-r--r--llvm/lib/MC/MCContext.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp
index 63338353a1f..061d7c2498e 100644
--- a/llvm/lib/MC/MCContext.cpp
+++ b/llvm/lib/MC/MCContext.cpp
@@ -22,11 +22,6 @@ MCContext::~MCContext() {
// we don't need to free them here.
}
-MCSection *MCContext::GetSection(const StringRef &Name) const {
- StringMap<MCSection*>::const_iterator I = Sections.find(Name);
- return I != Sections.end() ? I->second : 0;
-}
-
MCSymbol *MCContext::CreateSymbol(const StringRef &Name) {
assert(Name[0] != '\0' && "Normal symbols cannot be unnamed!");
OpenPOWER on IntegriCloud