DebugInfo: Keep track of subprograms who's arguments have been promoted.
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 1 Jul 2014 21:13:37 +0000 (21:13 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 1 Jul 2014 21:13:37 +0000 (21:13 +0000)
commit49ec6e933f9a200605dd83834c2c7556d618b6d7
treea7ab63e20075a6df243c49cfca3dc64c6983576c
parentd7ffdcdfcfe455604f75ca79780267a3f1e7ca59
DebugInfo: Keep track of subprograms who's arguments have been promoted.

Matching behavior with DeadArgumentElimination (and leveraging some
now-common infrastructure), keep track of the function from debug info
metadata if arguments are promoted.

This may produce interesting debug info - since the arguments may be
missing or of different types... but at least backtraces, inlining, etc,
will be correct.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212128 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/ArgumentPromotion.cpp
test/Transforms/ArgumentPromotion/dbg.ll