From 917d2c9dc2cc8879ed97533e7f75f3f92fa26b61 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 19 Jul 2006 00:00:37 +0000 Subject: [PATCH] Add an out-of-line virtual method for the sdnode class to give it a home. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29192 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/SelectionDAGNodes.h | 3 +++ lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index c5b9756de39..23d3d2789cd 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -713,6 +713,9 @@ class SDNode { /// Uses - These are all of the SDNode's that use a value produced by this /// node. std::vector Uses; + + // Out-of-line virtual method to give class a home. + virtual void ANCHOR(); public: virtual ~SDNode() { assert(NumOperands == 0 && "Operand list not cleared before deletion"); diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 13f0c491aa9..07b7c88829e 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2702,6 +2702,10 @@ void SelectionDAG::ReplaceAllUsesOfValueWith(SDOperand From, SDOperand To, // SDNode Class //===----------------------------------------------------------------------===// +// Out-of-line virtual method to give class a home. +void SDNode::ANCHOR() { +} + /// getValueTypeList - Return a pointer to the specified value type. ///