DebugInfo: Use the SPMap to find the parent CU of inlined functions as they may not...
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 21 May 2014 23:14:12 +0000 (23:14 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 21 May 2014 23:14:12 +0000 (23:14 +0000)
commit111bad385ab8bdaec4a798481be6b66252417dce
treedf64840847a03bed06213d93a64f74e334aeed34
parentafd1747bbca94fa666910e42edcf016495a42dad
DebugInfo: Use the SPMap to find the parent CU of inlined functions as they may not be in the current CU

Committed in r209178 then reverted in r209251 due to LTO breakage,
here's a proper fix for the case of the missing subprogram DIE. The DIEs
were there, just in other compile units. Using the SPMap we can find the
right compile unit to search for and produce cross-unit references to
describe this kind of inlining.

One existing test case needed to be updated because it had a function
that wasn't in the CU's subprogram list, so it didn't appear in the
SPMap.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209335 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
test/CodeGen/Thumb/2010-07-15-debugOrdering.ll
test/DebugInfo/cross-cu-inlining.ll [new file with mode: 0644]