diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-02-13 18:18:56 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-02-13 18:18:56 +0000 |
| commit | 4f2a067df11d807d464c097e0252c4e792cace0f (patch) | |
| tree | 9446e570ed822b38aa5f1109c204ae311b72d9f9 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
| parent | ab57f79df417a2dc358bb5693262a88c23e095f3 (diff) | |
| download | bcm5719-llvm-4f2a067df11d807d464c097e0252c4e792cace0f.tar.gz bcm5719-llvm-4f2a067df11d807d464c097e0252c4e792cace0f.zip | |
[PR18809] Revert r201187, "DebugInfo: Don't include the name of the CU file in the line table file list when it's unneeded"
It really crashes cygwin's stage2 configure with "clang -g".
llvm-svn: 201351
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 92c153bf64e..d50f9d6c7d0 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -751,6 +751,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, |

