Remove virtual destructor from InstVisitor. This class should never be
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Sun, 23 May 2004 20:54:39 +0000 (20:54 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Sun, 23 May 2004 20:54:39 +0000 (20:54 +0000)
used through a base pointer/reference so inproper destruction should
never be an issue. Removing this last virtual function also saves 4
bytes off each InstVisitor instance.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13664 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/InstVisitor.h

index 4af9256dcf70424e4d747897ce50a209e5615f7e..c8e7cf98d0562833ae12aaafc41723563f2dc773 100644 (file)
@@ -71,8 +71,6 @@ class AllocationInst;
 
 template<typename SubClass, typename RetTy=void>
 struct InstVisitor {
-  virtual ~InstVisitor() {}           // We are meant to be derived from
-
   //===--------------------------------------------------------------------===//
   // Interface code - This is the public interface of the InstVisitor that you
   // use to visit instructions...