correct the type of two intrinsics, add int_ppc_altivec_vmladduhm
[oota-llvm.git] / include / llvm / GlobalVariable.h
index 1a951774fd351fca780a8bdabe20eef2e05e0f96..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,12 +51,9 @@ 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);
 
-  // Specialize setName to handle symbol table majik...
-  virtual void setName(const std::string &name, SymbolTable *ST = 0);
-
   /// isExternal - Is this global variable lacking an initializer?  If so, the
   /// global variable is defined in some other translation unit, and is thus
   /// externally defined here.
@@ -113,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: