From: Reid Spencer Date: Sat, 17 Jul 2004 23:29:46 +0000 (+0000) Subject: bug 122: X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=efd5dd80c9f6e32eae10d5977e8120a23ee017f8;p=oota-llvm.git bug 122: 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 --- diff --git a/include/llvm/GlobalVariable.h b/include/llvm/GlobalVariable.h index b98edd7e0d5..dd6f24d7d03 100644 --- a/include/llvm/GlobalVariable.h +++ b/include/llvm/GlobalVariable.h @@ -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: