Don't generate line&scope debug info for meta-instructions.
authorAdrian Prantl <aprantl@apple.com>
Mon, 22 May 2017 20:47:09 +0000 (20:47 +0000)
committerAdrian Prantl <aprantl@apple.com>
Mon, 22 May 2017 20:47:09 +0000 (20:47 +0000)
commitfb31da1306e414e4101b84c89c3a6553efa48aff
tree39614bdc5088048e2cb4ffa6e5b7191f8b5e9e9c
parent525dcb617b1d3650061c8b6beff003c8c593ae9d
Don't generate line&scope debug info for meta-instructions.

MachineInstructions that don't generate any code (such as
IMPLICIT_DEFs) should not generate any debug info either.

Fixes PR33107.

https://bugs.llvm.org/show_bug.cgi?id=33107

This reapplies r303566 without any modifications. The stage2 build
failures persisted even after reverting this patch, and looking back
through history, it looks like these tests are flaky.

llvm-svn: 303575
llvm/include/llvm/CodeGen/MachineInstr.h
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/CodeGen/LexicalScopes.cpp
llvm/test/DebugInfo/MIR/X86/empty-inline.mir [new file with mode: 0644]