DebugInfo: Preserve debug location information when transforming a call into an invok...
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 30 Jun 2014 20:30:39 +0000 (20:30 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 30 Jun 2014 20:30:39 +0000 (20:30 +0000)
commit6408a8b836f801d27f61219c245a35b44ad10f00
treec878489b237c17ce36224776eb2587151888dbf6
parent0e2313c1c8c8e335e41f4d7193da26b8d4efb05f
DebugInfo: Preserve debug location information when transforming a call into an invoke during inlining.

This both improves basic debug info quality, but also fixes a larger
hole whenever we inline a call/invoke without a location (debug info for
the entire inlining is lost and other badness that the debug info
emission code is currently working around but shouldn't have to).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212065 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/InlineFunction.cpp
test/Transforms/Inline/debug-invoke.ll [new file with mode: 0644]