Retain the name of the new internal global that's been shrunk.
authorBill Wendling <isanbard@gmail.com>
Wed, 13 Feb 2013 23:00:51 +0000 (23:00 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 13 Feb 2013 23:00:51 +0000 (23:00 +0000)
commit7297b864a4a38271d2d4fb6be07c11841bf7c275
treefb37643b643f103c6c52d96659db4d41788343ff
parent3c0ed76a9d433cabaf9df757055dbc3cbccbeed6
Retain the name of the new internal global that's been shrunk.

It's possible (e.g. after an LTO build) that an internal global may be used for
debugging purposes. If that's the case appending a '.b' to it makes it hard to
find that variable. Steal the name from the old GV before deleting it so that
they can find that variable again.

llvm-svn: 175104
llvm/lib/Transforms/IPO/GlobalOpt.cpp