For PR351:
[oota-llvm.git] / include / llvm / GlobalVariable.h
index dd6f24d7d032c2364331fcdaa494e4b5c5fc7266..99c39f179602c91c77686bff6cd0c2e8f7aaf954 100644 (file)
@@ -97,6 +97,16 @@ 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.