Recommit r288212: Emit 'no line' information for interesting 'orphan' instructions.
authorPaul Robinson <paul.robinson@sony.com>
Wed, 30 Nov 2016 22:49:55 +0000 (22:49 +0000)
committerPaul Robinson <paul.robinson@sony.com>
Wed, 30 Nov 2016 22:49:55 +0000 (22:49 +0000)
commit37a13ddb4bb433ddebc64bf51a10f48fe75ac49c
treebe99704493d6dafd2c5de10f444d2c499268d51b
parentba6a9a06fd68d1a408f82cb056d6ce978bade4f8
Recommit r288212: Emit 'no line' information for interesting 'orphan' instructions.
The LLDB tests are now ready for this patch.

DWARF specifies that "line 0" really means "no appropriate source
location" in the line table.  Use this for branch targets and some
other cases that have no specified source location, to prevent
inheriting unfortunate line numbers from physically preceding
instructions (which might be from completely unrelated source).

Differential Revision: http://reviews.llvm.org/D24180

llvm-svn: 288283
llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.h
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/test/CodeGen/X86/stack-protector.ll
llvm/test/DebugInfo/AArch64/line-header.ll
llvm/test/DebugInfo/X86/dwarf-no-source-loc.ll [new file with mode: 0644]