llvm/test
Ulrich Weigand 4df4bccc71 [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.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184357 91177308-0d34-0410-b5e6-96231b3b80d8
2013-06-19 21:27:27 +00:00
..
Analysis Unit test for SCEV fix r182989, PR16130. 2013-05-31 16:42:41 +00:00
Archive Remove the 'R' modifier. 2013-06-19 14:58:16 +00:00
Assembler
Bindings/Ocaml
Bitcode
BugPoint
CodeGen AArch64: remove accidental test output file. 2013-06-18 21:16:53 +00:00
DebugInfo Fix frame pointer debug information test 2013-06-14 19:55:26 +00:00
ExecutionEngine Enable mcjit tests on ppc64 when building with cmake. 2013-06-03 19:17:21 +00:00
Feature
FileCheck
Instrumentation [msan] Handle mixed track-origins and keep-going settings (llvm part). 2013-05-31 12:04:29 +00:00
Integer
JitListener
Linker Extend RemapInstruction and friends to take an optional new parameter, a ValueMaterializer. 2013-05-28 15:17:05 +00:00
MC [MC/DWARF] Generate multiple .debug_line entries for adjacent .loc directives 2013-06-19 21:27:27 +00:00
Object [yaml2obj][ELF] Beef up this test a bit. 2013-06-19 00:55:32 +00:00
Other Add a testcase for r184074. 2013-06-17 14:00:41 +00:00
TableGen
tools readobj: Dump PE/COFF optional records. 2013-06-12 19:10:33 +00:00
Transforms Move StructurizeCFG out of R600 to generic Transforms. 2013-06-19 20:18:24 +00:00
Unit
Verifier
YAMLParser
CMakeLists.txt
lit.cfg Remove the LLVM specific archive index. 2013-06-14 23:25:53 +00:00
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh