Debug Info: simplify code a bit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193001 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Manman Ren 2013-10-18 20:52:22 +00:00
parent 22f9dd4591
commit 57a964bc63

View File

@ -1376,7 +1376,7 @@ DIE *CompileUnit::getOrCreateSubprogramDIE(DISubprogram SP) {
addDIEEntry(SPDie, dwarf::DW_AT_specification, DeclDie);
// Add subprogram definitions to the CU die directly.
CUDie.get()->addChild(SPDie);
addDie(SPDie);
return SPDie;
}