From: Chris Lattner Date: Sun, 2 Feb 2003 16:40:40 +0000 (+0000) Subject: Allow modifying a global variables constness property X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8bac08bf047d54acac33b656ee4a0d244770f6d3;p=oota-llvm.git Allow modifying a global variables constness property git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5468 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/GlobalVariable.h b/include/llvm/GlobalVariable.h index 372b7a25e66..a534d19008b 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: