Don't generate line&scope debug info for meta-instructions.
authorAdrian Prantl <aprantl@apple.com>
Mon, 22 May 2017 16:21:02 +0000 (16:21 +0000)
committerAdrian Prantl <aprantl@apple.com>
Mon, 22 May 2017 16:21:02 +0000 (16:21 +0000)
commit4c047f8931ba328149e8db176b756a8e409cdb04
tree08e2f86583c0ddf742244b3abd71f623ef9b1bef
parent9812d231ed502bfad2bafe2a3c49eb2fe8da14ca
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

llvm-svn: 303566
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]