summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-02-10 18:19:41 +0000
committerChris Lattner <sabre@nondot.org>2003-02-10 18:19:41 +0000
commited14f8283a1cf3178f656c67dec6c9323c0c756c (patch)
treef709fe5692c767b6fc58956a54c3a72593aed9de /include
parent2609c07df305eb0e6dc6c130732f3ca101ed2dc4 (diff)
downloadexternal_llvm-ed14f8283a1cf3178f656c67dec6c9323c0c756c.zip
external_llvm-ed14f8283a1cf3178f656c67dec6c9323c0c756c.tar.gz
external_llvm-ed14f8283a1cf3178f656c67dec6c9323c0c756c.tar.bz2
Move getNode() out of line
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5531 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/DSNode.h6
-rw-r--r--include/llvm/Analysis/DSSupport.h4
-rw-r--r--include/llvm/Analysis/DataStructure/DSNode.h6
-rw-r--r--include/llvm/Analysis/DataStructure/DSSupport.h4
4 files changed, 14 insertions, 6 deletions
diff --git a/include/llvm/Analysis/DSNode.h b/include/llvm/Analysis/DSNode.h
index da8050c..f5bd818 100644
--- a/include/llvm/Analysis/DSNode.h
+++ b/include/llvm/Analysis/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;
diff --git a/include/llvm/Analysis/DSSupport.h b/include/llvm/Analysis/DSSupport.h
index b00f958..0daf4f1 100644
--- a/include/llvm/Analysis/DSSupport.h
+++ b/include/llvm/Analysis/DSSupport.h
@@ -72,10 +72,10 @@ public:
inline void swap(DSNodeHandle &H);
// Allow explicit conversion to DSNode...
- DSNode *getNode() const { return N; }
+ inline DSNode *getNode() const; // Defined inline in DSNode.h
unsigned getOffset() const { return Offset; }
- inline void setNode(DSNode *N); // Defined inline later...
+ inline void setNode(DSNode *N); // Defined inline in DSNode.h
void setOffset(unsigned O) { Offset = O; }
void addEdgeTo(unsigned LinkNo, const DSNodeHandle &N);
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;
diff --git a/include/llvm/Analysis/DataStructure/DSSupport.h b/include/llvm/Analysis/DataStructure/DSSupport.h
index b00f958..0daf4f1 100644
--- a/include/llvm/Analysis/DataStructure/DSSupport.h
+++ b/include/llvm/Analysis/DataStructure/DSSupport.h
@@ -72,10 +72,10 @@ public:
inline void swap(DSNodeHandle &H);
// Allow explicit conversion to DSNode...
- DSNode *getNode() const { return N; }
+ inline DSNode *getNode() const; // Defined inline in DSNode.h
unsigned getOffset() const { return Offset; }
- inline void setNode(DSNode *N); // Defined inline later...
+ inline void setNode(DSNode *N); // Defined inline in DSNode.h
void setOffset(unsigned O) { Offset = O; }
void addEdgeTo(unsigned LinkNo, const DSNodeHandle &N);