OSDN Git Service

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)
commit17fe48ce6ee694eb1fb29804f4cba3dbea5e9248
tree7cb1189dc60e974e9d8f4c025e5d5b029cd562e4
parent666e0d3bc4a28540c1aa73b24573af70d1d46aea
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175104 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp