[llvm] r201467 - DwarfDebug: Remove dead code.

David Blaikie dblaikie at gmail.com
Sat Feb 15 10:33:11 PST 2014


Author: dblaikie
Date: Sat Feb 15 12:33:11 2014
New Revision: 201467

URL: http://llvm.org/viewvc/llvm-project?rev=201467&view=rev
Log:
DwarfDebug: Remove dead code.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=201467&r1=201466&r2=201467&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Sat Feb 15 12:33:11 2014
@@ -2553,13 +2553,9 @@ void DwarfFile::emitAddresses(const MCSe
        I != E; ++I)
     Entries[I->second] = I->first;
 
-  for (unsigned i = 0, e = Entries.size(); i != e; ++i) {
-    // Emit an expression for reference from debug information entries.
-    if (const MCExpr *Expr = Entries[i])
-      Asm->OutStreamer.EmitValue(Expr, Asm->getDataLayout().getPointerSize());
-    else
-      Asm->OutStreamer.EmitIntValue(0, Asm->getDataLayout().getPointerSize());
-  }
+  for (unsigned i = 0, e = Entries.size(); i != e; ++i)
+    Asm->OutStreamer.EmitValue(Entries[i],
+                               Asm->getDataLayout().getPointerSize());
 }
 
 // Emit visible names into a debug str section.





More information about the llvm-commits mailing list