Allow modifying a global variables constness property

llvm-svn: 5468
This commit is contained in:
Chris Lattner 2003-02-02 16:40:40 +00:00
parent c68ccffee6
commit 58fa654380

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: