[llvm-commits] CVS: llvm/include/llvm/GlobalVariable.h

Chris Lattner lattner at cs.uiuc.edu
Sun Feb 2 10:41:03 PST 2003


Changes in directory llvm/include/llvm:

GlobalVariable.h updated: 1.17 -> 1.18

---
Log message:

Allow modifying a global variables constness property


---
Diffs of the changes:

Index: llvm/include/llvm/GlobalVariable.h
diff -u llvm/include/llvm/GlobalVariable.h:1.17 llvm/include/llvm/GlobalVariable.h:1.18
--- llvm/include/llvm/GlobalVariable.h:1.17	Wed Oct  9 18:11:33 2002
+++ llvm/include/llvm/GlobalVariable.h	Sun Feb  2 10:40:40 2003
@@ -85,8 +85,9 @@
   /// 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:





More information about the llvm-commits mailing list