From ed14f8283a1cf3178f656c67dec6c9323c0c756c Mon Sep 17 00:00:00 2001
From: Chris Lattner <sabre@nondot.org>
Date: Mon, 10 Feb 2003 18:19:41 +0000
Subject: Move getNode() out of line

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5531 91177308-0d34-0410-b5e6-96231b3b80d8
---
 include/llvm/Analysis/DataStructure/DSNode.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'include/llvm/Analysis/DataStructure/DSNode.h')

diff --git a/include/llvm/Analysis/DataStructure/DSNode.h b/include/llvm/Analysis/DataStructure/DSNode.h
index da8050c..f5bd818 100644
--- a/include/llvm/Analysis/DataStructure/DSNode.h
+++ b/include/llvm/Analysis/DataStructure/DSNode.h
@@ -78,7 +78,7 @@ public:
 
   ~DSNode() {
     dropAllReferences();
-    assert(Referrers.empty() && "Referrers to dead node exist!");
+    assert(hasNoReferrers() && "Referrers to dead node exist!");
   }
 
   // Iterator for graph interface... Defined in DSGraphTraits.h
@@ -241,6 +241,10 @@ private:
 //===----------------------------------------------------------------------===//
 // Define inline DSNodeHandle functions that depend on the definition of DSNode
 //
+inline DSNode *DSNodeHandle::getNode() const {
+  return N;
+}
+
 inline void DSNodeHandle::setNode(DSNode *n) {
   if (N) N->removeReferrer(this);
   N = n;
-- 
cgit v1.1