DebugInfo: don't use location lists when the location covers the whole function anyway
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 20 Jun 2013 00:25:24 +0000 (00:25 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 20 Jun 2013 00:25:24 +0000 (00:25 +0000)
commitea2605dc1a08114650fc2910046a6191ceb7481d
tree616f30de34d0b1f3d7c1637ac22044ab7a38fd1a
parentb2d617de2cb31052a5f06ad57c64268c392c26c9
DebugInfo: don't use location lists when the location covers the whole function anyway

Fix up three tests - one that was relying on abbreviation number,
another relying on a location list in this case (& testing raw asm,
changed that to use dwarfdump on the debug_info now that that's where
the location is), and another which was added in r184368 - exposing a
bug in that fix that is exposed when we emit the location inline rather
than through a location list. Fix that bug while I'm here.

llvm-svn: 184387
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/test/CodeGen/X86/dbg-merge-loc-entry.ll
llvm/test/DebugInfo/X86/dbg-value-inlined-parameter.ll
llvm/test/DebugInfo/X86/parameters.ll