Change all machine basic block modifier functions in MRegisterInfo to
[oota-llvm.git] / include / llvm / GlobalVariable.h
index 372b7a25e66c975f369ee04b348888fe680e12be..d1a9a293c664b2eef696593dd88c30d4355dbeb0 100644 (file)
@@ -1,4 +1,11 @@
-//===-- llvm/Global.h - Class to represent a global variable -----*- C++ -*--=//
+//===-- llvm/Global.h - Class to represent a global variable ----*- C++ -*-===//
+// 
+//                     The LLVM Compiler Infrastructure
+//
+// This file was developed by the LLVM research group and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// 
+//===----------------------------------------------------------------------===//
 //
 // This file contains the declaration of the GlobalVariable class, which
 // represents a single global variable (or constant) in the VM.
@@ -14,6 +21,7 @@
 #define LLVM_GLOBAL_VARIABLE_H
 
 #include "llvm/GlobalValue.h"
+
 class Module;
 class Constant;
 class PointerType;
@@ -35,7 +43,7 @@ public:
   /// GlobalVariable ctor - If a parent module is specified, the global is
   /// automatically inserted into the end of the specified modules global list.
   ///
-  GlobalVariable(const Type *Ty, bool isConstant, bool isInternal,
+  GlobalVariable(const Type *Ty, bool isConstant, LinkageTypes Linkage,
                 Constant *Initializer = 0, const std::string &Name = "",
                  Module *Parent = 0);
 
@@ -85,8 +93,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: