[llvm-commits] CVS: llvm/include/llvm/Support/InstVisitor.h
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sun May 23 15:57:01 PDT 2004
Changes in directory llvm/include/llvm/Support:
InstVisitor.h updated: 1.30 -> 1.31
---
Log message:
Remove virtual destructor from InstVisitor. This class should never be
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.
---
Diffs of the changes: (+0 -2)
Index: llvm/include/llvm/Support/InstVisitor.h
diff -u llvm/include/llvm/Support/InstVisitor.h:1.30 llvm/include/llvm/Support/InstVisitor.h:1.31
--- llvm/include/llvm/Support/InstVisitor.h:1.30 Wed May 5 21:07:42 2004
+++ llvm/include/llvm/Support/InstVisitor.h Sun May 23 15:54:39 2004
@@ -71,8 +71,6 @@
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...
More information about the llvm-commits
mailing list