forked from OSchip/llvm-project
Revert r70630. Go back to appending ".b" to internal globals when shrinking
them to bool. llvm-svn: 70653
This commit is contained in:
parent
bdb23a1f56
commit
431f97e4f0
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue