Allow modifying a global variables constness property

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5468 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-02-02 16:40:40 +00:00
parent bb3e5d4f6e
commit 8bac08bf04

View File

@ -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: