]> granicus.if.org Git - llvm/commit
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)
commitb66586857d0118032e0ce9b154691a279adaa768
tree2f37c233987cd30fc891daed015b21717835598e
parentf696b320655e0640b65c11a11f63cb77bbc2bd92
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)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304004 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
test/DebugInfo/Generic/nodebug.ll