[llvm] r193001 - Debug Info: simplify code a bit.

Manman Ren manman.ren at gmail.com
Fri Oct 18 13:52:23 PDT 2013


Author: mren
Date: Fri Oct 18 15:52:22 2013
New Revision: 193001

URL: http://llvm.org/viewvc/llvm-project?rev=193001&view=rev
Log:
Debug Info: simplify code a bit.

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

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp?rev=193001&r1=193000&r2=193001&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp Fri Oct 18 15:52:22 2013
@@ -1376,7 +1376,7 @@ DIE *CompileUnit::getOrCreateSubprogramD
     addDIEEntry(SPDie, dwarf::DW_AT_specification, DeclDie);
 
     // Add subprogram definitions to the CU die directly.
-    CUDie.get()->addChild(SPDie);
+    addDie(SPDie);
 
     return SPDie;
   }





More information about the llvm-commits mailing list