summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-03-25 01:43:56 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-03-25 01:43:56 +0000
commit2d33d6a4c29fcda36cc13591c9a007498934c961 (patch)
tree577675154a5318bd9f8b0650c7eb616c1f301789 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent399a6035e0fc81cec34e5b5765317e93c1211d07 (diff)
downloadbcm5719-llvm-2d33d6a4c29fcda36cc13591c9a007498934c961.tar.gz
bcm5719-llvm-2d33d6a4c29fcda36cc13591c9a007498934c961.zip
DebugInfo: Remove unnecessary zero-size check
This seems excessive - switching section isn't expensive (or if it is we're already being wasteful, since we emitted the debug_loc section symbol earlier anyway) and otherwise there's no work that happens in this function when the list is empty. llvm-svn: 204696
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 c50243af083..792a9c48cdf 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -2377,9 +2377,6 @@ void DwarfDebug::emitDebugLocEntry(ByteStreamer &Streamer,
// Emit locations into the debug loc section.
void DwarfDebug::emitDebugLoc() {
- if (DotDebugLocEntries.empty())
- return;
-
// Start the dwarf loc section.
Asm->OutStreamer.SwitchSection(
Asm->getObjFileLowering().getDwarfLocSection());
OpenPOWER on IntegriCloud