aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-07-17 23:29:46 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-07-17 23:29:46 +0000
commitefd5dd80c9f6e32eae10d5977e8120a23ee017f8 (patch)
tree8c445d1a216f35551c861b5c0c12af19f6526533
parent118c091fd7b57cd0236c3b722e36a7a883b17b0a (diff)
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
-rw-r--r--include/llvm/GlobalVariable.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/GlobalVariable.h b/include/llvm/GlobalVariable.h
index b98edd7e0d..dd6f24d7d0 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: