DebugInfo: Don't include locations for debug-having code inlined into nodebug functions
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 26 May 2017 17:05:15 +0000 (17:05 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 26 May 2017 17:05:15 +0000 (17:05 +0000)
commit7f2b717b52f9a3884ef0f1d8a3704097892d988c
tree01c40454b8ec75229e092becef68ff73d36d1209
parentdde28a8c92683e068cec7901353f4f3d8f3bc9a0
DebugInfo: Don't include locations for debug-having code inlined into nodebug functions

This produced 'strange' DWARF anyway - the CU would have no ranges (or
at least not a range including the inlined code) nor any subprogram or
inlined_subroutine - yet the line table would have entries for these
instructions.

(this actually becomes more relevant with changes coming after this,
where a CU without any contents will be omitted entirely - so there
would be no line table to put this on anyway)

llvm-svn: 304004
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/test/DebugInfo/Generic/nodebug.ll