[llvm-commits] CVS: llvm/include/llvm/Analysis/DSNode.h DSSupport.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Feb 10 12:21:01 PST 2003
Changes in directory llvm/include/llvm/Analysis:
DSNode.h updated: 1.19 -> 1.20
DSSupport.h updated: 1.12 -> 1.13
---
Log message:
Move getNode() out of line
---
Diffs of the changes:
Index: llvm/include/llvm/Analysis/DSNode.h
diff -u llvm/include/llvm/Analysis/DSNode.h:1.19 llvm/include/llvm/Analysis/DSNode.h:1.20
--- llvm/include/llvm/Analysis/DSNode.h:1.19 Fri Jan 31 22:51:53 2003
+++ llvm/include/llvm/Analysis/DSNode.h Mon Feb 10 12:19:41 2003
@@ -78,7 +78,7 @@
~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 @@
//===----------------------------------------------------------------------===//
// 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;
Index: llvm/include/llvm/Analysis/DSSupport.h
diff -u llvm/include/llvm/Analysis/DSSupport.h:1.12 llvm/include/llvm/Analysis/DSSupport.h:1.13
--- llvm/include/llvm/Analysis/DSSupport.h:1.12 Wed Feb 5 15:59:36 2003
+++ llvm/include/llvm/Analysis/DSSupport.h Mon Feb 10 12:19:41 2003
@@ -72,10 +72,10 @@
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);
More information about the llvm-commits
mailing list