Add an out-of-line virtual method for the sdnode class to give it a home.
authorChris Lattner <sabre@nondot.org>
Wed, 19 Jul 2006 00:00:37 +0000 (00:00 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 19 Jul 2006 00:00:37 +0000 (00:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29192 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGNodes.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index c5b9756de393a5e5f17396a3634e6047216b8de6..23d3d2789cd9cc5af813b909ea32c720e816e2f9 100644 (file)
@@ -713,6 +713,9 @@ class SDNode {
   /// Uses - These are all of the SDNode's that use a value produced by this
   /// node.
   std::vector<SDNode*> 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");
index 13f0c491aa9f9208a653351d7efaa1ba4f70cfd1..07b7c88829e03c1346ee97ae8247cfa249616d41 100644 (file)
@@ -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.
 ///