Do not let 'ftostr' return a string that starts with spaces. This allows
[oota-llvm.git] / include / llvm / GlobalVariable.h
index b98edd7e0d50c65e7068f9ca5fff5f32c315a996..99c39f179602c91c77686bff6cd0c2e8f7aaf954 100644 (file)
@@ -97,6 +97,21 @@ public:
   ///
   bool isConstant() const { return isConstantGlobal; }
   void setConstant(bool Value) { isConstantGlobal = Value; }
+
+  /// removeFromParent - This method unlinks 'this' from the containing module,
+  /// but does not delete it.
+  ///
+  void removeFromParent();
+
+  /// eraseFromParent - This method unlinks 'this' from the containing module
+  /// and deletes it.
+  ///
+  void eraseFromParent();
+  
+  /// 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 print(std::ostream &OS) const;