Revert r70630. Go back to appending ".b" to internal globals when shrinking

them to bool.

llvm-svn: 70653
This commit is contained in:
Nick Lewycky 2009-05-03 03:49:08 +00:00
parent bdb23a1f56
commit 431f97e4f0
1 changed files with 2 additions and 4 deletions

View File

@ -1549,12 +1549,10 @@ static bool TryToShrinkGlobalToBoolean(GlobalVariable *GV, Constant *OtherVal) {
// Create the new global, initializing it to false.
GlobalVariable *NewGV = new GlobalVariable(Type::Int1Ty, false,
GlobalValue::InternalLinkage,
ConstantInt::getFalse(),
"",
GlobalValue::InternalLinkage, ConstantInt::getFalse(),
GV->getName()+".b",
(Module *)NULL,
GV->isThreadLocal());
NewGV->takeName(GV);
GV->getParent()->getGlobalList().insert(GV, NewGV);
Constant *InitVal = GV->getInitializer();