summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-11-07 09:38:42 +0000
committerEric Christopher <echristo@apple.com>2011-11-07 09:38:42 +0000
commit76a4e1a0682c8e855f8b7c0a05d802dce8c07d7a (patch)
tree1b2532df5ea5532273235578e7d9ac00e673a84e /lib
parent2c802b7e88718f2c033fe1e7e602e341501b5d80 (diff)
downloadllvm-76a4e1a0682c8e855f8b7c0a05d802dce8c07d7a.tar.gz
llvm-76a4e1a0682c8e855f8b7c0a05d802dce8c07d7a.tar.bz2
llvm-76a4e1a0682c8e855f8b7c0a05d802dce8c07d7a.tar.xz
Remove unnecessary addition to API. Replace with something much simpler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp2
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp8
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.h4
3 files changed, 1 insertions, 13 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp b/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
index b7c8c6ee47..84a28390aa 100644
--- a/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
@@ -183,7 +183,7 @@ void DwarfAccelTable::EmitData(AsmPrinter *Asm, DwarfDebug *D) {
Asm->OutStreamer.EmitLabel((*HI)->Sym);
Asm->OutStreamer.AddComment((*HI)->Str);
Asm->EmitSectionOffset(D->getStringPoolEntry((*HI)->Str),
- D->getDwarfStrSectionSym());
+ D->getStringPool());
Asm->OutStreamer.AddComment("Num DIEs");
Asm->EmitInt32((*HI)->DIEOffsets.size());
for (std::vector<uint32_t>::const_iterator
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 8acc8571dd..633f216416 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -165,14 +165,6 @@ MCSymbol *DwarfDebug::getStringPoolEntry(StringRef Str) {
return Entry.first = Asm->GetTempSymbol("string", Entry.second);
}
-MCSymbol *DwarfDebug::getDwarfStrSectionSym(void) {
- if (DwarfStrSectionSym) return DwarfStrSectionSym;
- DwarfStrSectionSym =
- EmitSectionSym(Asm, Asm->getObjFileLowering().getDwarfStrSection(),
- "section_str");
- return DwarfStrSectionSym;
-}
-
/// assignAbbrevNumber - Define a unique number for the abbreviation.
///
void DwarfDebug::assignAbbrevNumber(DIEAbbrev &Abbrev) {
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.h b/lib/CodeGen/AsmPrinter/DwarfDebug.h
index ce5e59ec28..174333e484 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.h
@@ -528,10 +528,6 @@ public:
/// getStringPoolEntry - returns an entry into the string pool with the given
/// string text.
MCSymbol *getStringPoolEntry(StringRef Str);
-
- /// getDwarfStrSectionSym - returns the symbol that starts the dwarf string
- /// section.
- MCSymbol *getDwarfStrSectionSym();
};
} // End of namespace llvm