[llvm-commits] [llvm] r70653 - /llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
Nick Lewycky
nicholas at mxc.ca
Sat May 2 20:49:10 PDT 2009
Author: nicholas
Date: Sat May 2 22:49:08 2009
New Revision: 70653
URL: http://llvm.org/viewvc/llvm-project?rev=70653&view=rev
Log:
Revert r70630. Go back to appending ".b" to internal globals when shrinking
them to bool.
Modified:
llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
Modified: llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp?rev=70653&r1=70652&r2=70653&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp Sat May 2 22:49:08 2009
@@ -1549,12 +1549,10 @@
// 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();
More information about the llvm-commits
mailing list