diff options
author | Eric Christopher <echristo@gmail.com> | 2013-08-26 23:50:38 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-08-26 23:50:38 +0000 |
commit | bfceb2fe8fc3b5dd416bbdd08df5d6d8bb4114e1 (patch) | |
tree | be6b0ee79f0d32ebee5344ba05d5b5522e55d690 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 5faa669b66f2e278e9e4a46a62033cd12b806839 (diff) | |
download | bcm5719-llvm-bfceb2fe8fc3b5dd416bbdd08df5d6d8bb4114e1.tar.gz bcm5719-llvm-bfceb2fe8fc3b5dd416bbdd08df5d6d8bb4114e1.zip |
Remove the language parameter and variable from the compile unit. We
can get it via the MDNode that's passed in. Save that instead.
llvm-svn: 189291
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 600e233b2b7..6d1f5af22ed 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -696,9 +696,8 @@ CompileUnit *DwarfDebug::constructCompileUnit(const MDNode *N) { CompilationDir = DIUnit.getDirectory(); DIE *Die = new DIE(dwarf::DW_TAG_compile_unit); - CompileUnit *NewCU = new CompileUnit(GlobalCUIndexCount++, - DIUnit.getLanguage(), Die, N, Asm, - this, &InfoHolder); + CompileUnit *NewCU = + new CompileUnit(GlobalCUIndexCount++, Die, N, Asm, this, &InfoHolder); FileIDCUMap[NewCU->getUniqueID()] = 0; // Call this to emit a .file directive if it wasn't emitted for the source @@ -2691,9 +2690,8 @@ CompileUnit *DwarfDebug::constructSkeletonCU(const MDNode *N) { CompilationDir = DIUnit.getDirectory(); DIE *Die = new DIE(dwarf::DW_TAG_compile_unit); - CompileUnit *NewCU = new CompileUnit(GlobalCUIndexCount++, - DIUnit.getLanguage(), Die, N, Asm, - this, &SkeletonHolder); + CompileUnit *NewCU = + new CompileUnit(GlobalCUIndexCount++, Die, N, Asm, this, &SkeletonHolder); NewCU->addLocalString(Die, dwarf::DW_AT_GNU_dwo_name, DIUnit.getSplitDebugFilename()); |