OSDN Git Service

Remove SDNode's virtual destructor. This makes it impossible for
authorDan Gohman <gohman@apple.com>
Mon, 19 Jan 2009 22:39:36 +0000 (22:39 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 19 Jan 2009 22:39:36 +0000 (22:39 +0000)
commitc53361294957b63a9c1e405256c6f0a81db1685c
treeb5b61e884eb2c45d182538666836617682a06e2d
parent549170206ecc31839723cb4b4de3d872a9402813
Remove SDNode's virtual destructor. This makes it impossible for
SDNode subclasses to keep state that requires non-trivial
destructors, however it was already effectively impossible,
since the destructor isn't actually ever called. There currently
aren't any SDNode subclasses affected by this, and in general
it's desireable to keep SDNode objects light-weight.

This eliminates the last virtual member function in the SDNode
class, so it eliminates the need for a vtable pointer, making
SDNode smaller.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62539 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAG.h
include/llvm/CodeGen/SelectionDAGNodes.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp