From efd5dd80c9f6e32eae10d5977e8120a23ee017f8 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 17 Jul 2004 23:29:46 +0000 Subject: [PATCH] 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 --- include/llvm/GlobalVariable.h | 5 +++++ 1 file changed, 5 insertions(+) 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: -- 2.34.1