summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-03-09 20:09:58 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-03-09 20:09:58 +0000
commit14862d3e3741fa9d0d0415e34d8bc89c7b533909 (patch)
tree1379b26d5be14fd7f3a21f9eb9668428afa094ac /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent96bfaa97668dbe269cd9484be0476666d473286e (diff)
downloadbcm5719-llvm-14862d3e3741fa9d0d0415e34d8bc89c7b533909.tar.gz
bcm5719-llvm-14862d3e3741fa9d0d0415e34d8bc89c7b533909.zip
Don't prime the section map.
This was just creating unused labels for .text when the module had no functions. llvm-svn: 231694
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 40c7f3b0dec..04dedbd3f65 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1741,9 +1741,6 @@ void DwarfDebug::emitDebugARanges() {
// Provides a unique id per text section.
DenseMap<const MCSection *, SmallVector<SymbolCU, 8>> SectionMap;
- // Prime section data.
- SectionMap[Asm->getObjFileLowering().getTextSection()];
-
// Filter labels by section.
for (const SymbolCU &SCU : ArangeLabels) {
if (SCU.Sym->isInSection()) {
OpenPOWER on IntegriCloud