summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2013-06-19 21:27:27 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2013-06-19 21:27:27 +0000
commit64f440518b3dc41da99ace80d9289bfa8d92aa15 (patch)
treed2dbcb6e024937fecac461fa6cb2c6807e1c63a2 /clang/lib/CodeGen/CodeGenModule.cpp
parent3cb77ab98a370250778ed85dd28b88516344ac6d (diff)
downloadbcm5719-llvm-64f440518b3dc41da99ace80d9289bfa8d92aa15.tar.gz
bcm5719-llvm-64f440518b3dc41da99ace80d9289bfa8d92aa15.zip
[MC/DWARF] Generate multiple .debug_line entries for adjacent .loc directives
The compiler occasionally generates multiple .loc directives in a row (at the same instruction address). These need to be transformed into multple actual .debug_line table entries, since they are used to signal certain information to the debugger (e.g. if the opening brace of a function body is on the same line as the declaration). The MCAsmStreamer version of EmitDwarfLocDirective handles this correctly by emitting a .loc directive every time it is called. However, the MCObjectStream version simply defaults to recording the information and emitting only a single table entry later, e.g. when EmitInstruction is called. This patch introduces a MCAsmStreamer::EmitDwarfLocDirective version that emits a line table entry for a .loc directive that may already be pending before recording the new directive. (This is similar to how this is handled in GNU as.) With this patch (and the code alignment factor patch) applied, I'm now getting identical DWARF .debug sections for all test-suite object files on PowerPC for the internal and the external assembler. llvm-svn: 184357
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud