remove old piece of the V9 backend.
[oota-llvm.git] / include / llvm / GlobalVariable.h
index 1faa095d0513bc20b49c37719cbb0076912492b1..87df5d514fdb549fb5bc33cd37747d28e1439d28 100644 (file)
@@ -1,10 +1,10 @@
 //===-- llvm/GlobalVariable.h - GlobalVariable class ------------*- 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
@@ -34,6 +34,9 @@ template<typename ValueSubClass, typename ItemParentClass, typename SymTabClass,
 class GlobalVariable : public GlobalValue {
   friend class SymbolTableListTraits<GlobalVariable, Module, Module,
                                      ilist_traits<GlobalVariable> >;
+  void operator=(const GlobalVariable &);     // Do not implement
+  GlobalVariable(const GlobalVariable &);     // Do not implement
+
   void setParent(Module *parent);
 
   GlobalVariable *Prev, *Next;
@@ -48,7 +51,7 @@ public:
   /// automatically inserted into the end of the specified modules global list.
   ///
   GlobalVariable(const Type *Ty, bool isConstant, LinkageTypes Linkage,
-                Constant *Initializer = 0, const std::string &Name = "",
+                 Constant *Initializer = 0, const std::string &Name = "",
                  Module *Parent = 0);
 
   /// isExternal - Is this global variable lacking an initializer?  If so, the
@@ -110,12 +113,11 @@ public:
   /// and deletes it.
   ///
   void eraseFromParent();
-  
-  /// Override Constant's implementation of this method so we can 
+
+  /// Override Constant's implementation of this method so we can
   /// replace constant initializers.
-  virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
-                                           bool DisableChecking = false);
-  
+  virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);
+
   virtual void print(std::ostream &OS) const;
 
   // Methods for support type inquiry through isa, cast, and dyn_cast: