bug 122:
authorReid Spencer <rspencer@reidspencer.com>
Sat, 17 Jul 2004 23:29:46 +0000 (23:29 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 17 Jul 2004 23:29:46 +0000 (23:29 +0000)
Now that GlobalVariable is a constant (via derivation from GlobalValue),
override the replaceUsesOfWithOnConstant method.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14921 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/GlobalVariable.h

index b98edd7e0d50c65e7068f9ca5fff5f32c315a996..dd6f24d7d032c2364331fcdaa494e4b5c5fc7266 100644 (file)
@@ -98,6 +98,11 @@ public:
   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: