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
This commit is contained in:
David Blaikie 2014-03-25 01:43:56 +00:00
parent 399a6035e0
commit 2d33d6a4c2
1 changed files with 0 additions and 3 deletions

View File

@ -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());