diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-13 00:37:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-13 00:37:15 +0000 |
commit | 38cff389af1d78bd80df0479ef258493e0c5897e (patch) | |
tree | 7bbbecb058efb77eaf4ab59aac1f6c8a8e168e72 /lib/MC/MCContext.cpp | |
parent | f991ecf7231436437f6de1a22e93d0a1b380e078 (diff) |
sink uniquing of sections out of MCContext into the ELF and PECOFF TLOF implementations.
MCContext no longer maintains a string -> section map.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCContext.cpp')
-rw-r--r-- | lib/MC/MCContext.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp index 63338353a1..061d7c2498 100644 --- a/lib/MC/MCContext.cpp +++ b/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!"); |