diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-02 16:40:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-02 16:40:40 +0000 |
commit | 8bac08bf047d54acac33b656ee4a0d244770f6d3 (patch) | |
tree | ec05bd1d37cd4766ab794f6fc034b425b1bbf7ba | |
parent | bb3e5d4f6e749c5ebd539a437f5ed4380635bcd4 (diff) |
Allow modifying a global variables constness property
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5468 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/GlobalVariable.h | 5 |
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: |