Improve support for type-generic vector intrinsics by teaching TableGen how
[oota-llvm.git] / include / llvm / GlobalVariable.h
index aae17e409daf7792904c146fa7b02454f0e236f7..bcbf3213462732c7689e49a60ddea2040d3fb9ac 100644 (file)
@@ -28,7 +28,6 @@ namespace llvm {
 
 class Module;
 class Constant;
-class PointerType;
 template<typename ValueSubClass, typename ItemParentClass>
   class SymbolTableListTraits;
 
@@ -122,12 +121,12 @@ public:
   /// removeFromParent - This method unlinks 'this' from the containing module,
   /// but does not delete it.
   ///
-  void removeFromParent();
+  virtual void removeFromParent();
 
   /// eraseFromParent - This method unlinks 'this' from the containing module
   /// and deletes it.
   ///
-  void eraseFromParent();
+  virtual void eraseFromParent();
 
   /// Override Constant's implementation of this method so we can
   /// replace constant initializers.