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)
commite844cd53051aa886e9376f299501684e31f0ca40
tree9fa3f3f0037b1e32097dcdc3c3a7213d69d68753
parent3c7228e4684b88651412273661db32d6cc554ebe
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.

llvm-svn: 212128
llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
llvm/test/Transforms/ArgumentPromotion/dbg.ll