LTO+Debug Info: correctly emit inlined_subroutine when the inlined callee is
authorManman Ren <mren@apple.com>
Tue, 28 May 2013 19:01:58 +0000 (19:01 +0000)
committerManman Ren <mren@apple.com>
Tue, 28 May 2013 19:01:58 +0000 (19:01 +0000)
commit9174fd77e5e299fa3b1357a85ad82173217270b7
treec805ec8f4d6454493a8c059fd2474058e8e8fae4
parentee6e242e78c5d279d4383d4ba97b42a25f7b5309
LTO+Debug Info: correctly emit inlined_subroutine when the inlined callee is
from a different CU.

We used to print out an error message and fail to generate inlined_subroutine.

If we use ref_addr in the generated DWARF, the DWARF version should be 3 or
above.
rdar://13926659

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182791 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h
test/DebugInfo/cross-cu-inline.ll [new file with mode: 0644]