aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/GlobalVariable.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/GlobalVariable.h b/include/llvm/GlobalVariable.h
index 372b7a25e6..a534d19008 100644
--- a/include/llvm/GlobalVariable.h
+++ b/include/llvm/GlobalVariable.h
@@ -85,8 +85,9 @@ public:
/// runtime execution of the program. Assigning a value into the constant
/// leads to undefined behavior.
///
- inline bool isConstant() const { return isConstantGlobal; }
-
+ bool isConstant() const { return isConstantGlobal; }
+ void setConstant(bool Value) { isConstantGlobal = Value; }
+
virtual void print(std::ostream &OS) const;
// Methods for support type inquiry through isa, cast, and dyn_cast: