diff options
| author | Eric Christopher <echristo@gmail.com> | 2014-02-14 05:33:16 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2014-02-14 05:33:16 +0000 |
| commit | abc621668d1f6f9693827cf9a1095a94b21ddce8 (patch) | |
| tree | 6c2b5b9213cd3ba044aa20d80187068093904b25 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
| parent | 602978ae0e3a40684ce345341a4f76fb4cf51235 (diff) | |
| download | bcm5719-llvm-abc621668d1f6f9693827cf9a1095a94b21ddce8.tar.gz bcm5719-llvm-abc621668d1f6f9693827cf9a1095a94b21ddce8.zip | |
Revert "DebugInfo: Don't include the name of the CU file in the line table file list when it's unneeded"
This reverts commit r201380 for now while we investigate.
llvm-svn: 201389
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 4d0eb445d34..de2f4c6e02a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -756,6 +756,9 @@ DwarfCompileUnit *DwarfDebug::constructDwarfCompileUnit(DICompileUnit DIUnit) { InfoHolder.addUnit(NewCU); FileIDCUMap[NewCU->getUniqueID()] = 0; + // Call this to emit a .file directive if it wasn't emitted for the source + // file this CU comes from yet. + getOrCreateSourceID(FN, CompilationDir, NewCU->getUniqueID()); NewCU->addString(Die, dwarf::DW_AT_producer, DIUnit.getProducer()); NewCU->addUInt(Die, dwarf::DW_AT_language, dwarf::DW_FORM_data2, |

