summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/JITCodeEmitter.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-03-18 00:11:48 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-03-18 00:11:48 +0000
commite05274d7d9550c951703be2c2a5432cb6561af78 (patch)
tree08fffc674cf6af51518b5217002b3c73d366f1c2 /llvm/lib/CodeGen/JITCodeEmitter.cpp
parent19a08bbb9a8e6e43fe250d9c29afde3ca4a3ef51 (diff)
downloadbcm5719-llvm-e05274d7d9550c951703be2c2a5432cb6561af78.tar.gz
bcm5719-llvm-e05274d7d9550c951703be2c2a5432cb6561af78.zip
DebugInfo: Do not rely on the compilation dir (index 0) for files in line tables shared between compilation units
When emitting assembly there's no support for emitting separate line tables for each compilation unit - so LLVM emits .loc directives producing a single line table. Line tables have an implicit directory (index 0) equal to the compilation directory (DW_AT_comp_dir) of the compilation unit that references them. If multiple compilation units (with possibly disparate compilation directories) reference the same line table, we must avoid relying on this ambiguous directory. Achieve this my simply not setting the compilation directory on the line table when we're in this situation (multiple units while emitting assembly). llvm-svn: 204094
Diffstat (limited to 'llvm/lib/CodeGen/JITCodeEmitter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud