[llvm-commits] CVS: llvm/include/llvm/GlobalVariable.h
LLVM
llvm at cs.uiuc.edu
Sat Jul 17 16:29:56 PDT 2004
Changes in directory llvm/include/llvm:
GlobalVariable.h updated: 1.27 -> 1.28
---
Log message:
bug 122: http://llvm.cs.uiuc.edu/PR122 :
Now that GlobalVariable is a constant (via derivation from GlobalValue),
override the replaceUsesOfWithOnConstant method.
---
Diffs of the changes: (+5 -0)
Index: llvm/include/llvm/GlobalVariable.h
diff -u llvm/include/llvm/GlobalVariable.h:1.27 llvm/include/llvm/GlobalVariable.h:1.28
--- llvm/include/llvm/GlobalVariable.h:1.27 Fri Jul 2 13:41:18 2004
+++ llvm/include/llvm/GlobalVariable.h Sat Jul 17 18:29:46 2004
@@ -98,6 +98,11 @@
bool isConstant() const { return isConstantGlobal; }
void setConstant(bool Value) { isConstantGlobal = Value; }
+ /// Override Constant's implementation of this method so we can
+ /// replace constant initializers.
+ virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
+ bool DisableChecking = false);
+
virtual void print(std::ostream &OS) const;
// Methods for support type inquiry through isa, cast, and dyn_cast:
More information about the llvm-commits
mailing list