From 14862d3e3741fa9d0d0415e34d8bc89c7b533909 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 9 Mar 2015 20:09:58 +0000 Subject: Don't prime the section map. This was just creating unused labels for .text when the module had no functions. llvm-svn: 231694 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp') 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> SectionMap; - // Prime section data. - SectionMap[Asm->getObjFileLowering().getTextSection()]; - // Filter labels by section. for (const SymbolCU &SCU : ArangeLabels) { if (SCU.Sym->isInSection()) { -- cgit v1.2.3