diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-03-20 17:05:45 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-03-20 17:05:45 +0000 |
commit | b5a1fccdc51461f022617343c7455623794cfb90 (patch) | |
tree | 5311aee16e6d2c357e90ad3684faef973213b267 /lib | |
parent | 31bd14fc2d0c99f661609ff069bc127a8f8cd050 (diff) | |
download | llvm-b5a1fccdc51461f022617343c7455623794cfb90.tar.gz llvm-b5a1fccdc51461f022617343c7455623794cfb90.tar.bz2 llvm-b5a1fccdc51461f022617343c7455623794cfb90.tar.xz |
Add comments from Eric's review of r204094.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204358 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 6925cb6bdd..e8055d7cf7 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -688,6 +688,11 @@ DwarfCompileUnit *DwarfDebug::constructDwarfCompileUnit(DICompileUnit DIUnit) { DwarfCompileUnit *NewCU = new DwarfCompileUnit( InfoHolder.getUnits().size(), Die, DIUnit, Asm, this, &InfoHolder); InfoHolder.addUnit(NewCU); + + // LTO with assembly output shares a single line table amongst multiple CUs. + // To avoid the compilation directory being ambiguous, let the line table + // explicitly describe the directory of all files, never relying on the + // compilation directory. if (!Asm->OutStreamer.hasRawTextSupport() || SingleCU) Asm->OutStreamer.getContext().setMCLineTableCompilationDir( NewCU->getUniqueID(), CompilationDir); |