mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-21 12:38:45 +00:00
Move getNode() out of line
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2609c07df3
commit
ed14f8283a
@ -78,7 +78,7 @@ public:
|
|||||||
|
|
||||||
~DSNode() {
|
~DSNode() {
|
||||||
dropAllReferences();
|
dropAllReferences();
|
||||||
assert(Referrers.empty() && "Referrers to dead node exist!");
|
assert(hasNoReferrers() && "Referrers to dead node exist!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Iterator for graph interface... Defined in DSGraphTraits.h
|
// Iterator for graph interface... Defined in DSGraphTraits.h
|
||||||
@ -241,6 +241,10 @@ private:
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Define inline DSNodeHandle functions that depend on the definition of DSNode
|
// Define inline DSNodeHandle functions that depend on the definition of DSNode
|
||||||
//
|
//
|
||||||
|
inline DSNode *DSNodeHandle::getNode() const {
|
||||||
|
return N;
|
||||||
|
}
|
||||||
|
|
||||||
inline void DSNodeHandle::setNode(DSNode *n) {
|
inline void DSNodeHandle::setNode(DSNode *n) {
|
||||||
if (N) N->removeReferrer(this);
|
if (N) N->removeReferrer(this);
|
||||||
N = n;
|
N = n;
|
||||||
|
@ -72,10 +72,10 @@ public:
|
|||||||
inline void swap(DSNodeHandle &H);
|
inline void swap(DSNodeHandle &H);
|
||||||
|
|
||||||
// Allow explicit conversion to DSNode...
|
// Allow explicit conversion to DSNode...
|
||||||
DSNode *getNode() const { return N; }
|
inline DSNode *getNode() const; // Defined inline in DSNode.h
|
||||||
unsigned getOffset() const { return Offset; }
|
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 setOffset(unsigned O) { Offset = O; }
|
||||||
|
|
||||||
void addEdgeTo(unsigned LinkNo, const DSNodeHandle &N);
|
void addEdgeTo(unsigned LinkNo, const DSNodeHandle &N);
|
||||||
|
@ -78,7 +78,7 @@ public:
|
|||||||
|
|
||||||
~DSNode() {
|
~DSNode() {
|
||||||
dropAllReferences();
|
dropAllReferences();
|
||||||
assert(Referrers.empty() && "Referrers to dead node exist!");
|
assert(hasNoReferrers() && "Referrers to dead node exist!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Iterator for graph interface... Defined in DSGraphTraits.h
|
// Iterator for graph interface... Defined in DSGraphTraits.h
|
||||||
@ -241,6 +241,10 @@ private:
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Define inline DSNodeHandle functions that depend on the definition of DSNode
|
// Define inline DSNodeHandle functions that depend on the definition of DSNode
|
||||||
//
|
//
|
||||||
|
inline DSNode *DSNodeHandle::getNode() const {
|
||||||
|
return N;
|
||||||
|
}
|
||||||
|
|
||||||
inline void DSNodeHandle::setNode(DSNode *n) {
|
inline void DSNodeHandle::setNode(DSNode *n) {
|
||||||
if (N) N->removeReferrer(this);
|
if (N) N->removeReferrer(this);
|
||||||
N = n;
|
N = n;
|
||||||
|
@ -72,10 +72,10 @@ public:
|
|||||||
inline void swap(DSNodeHandle &H);
|
inline void swap(DSNodeHandle &H);
|
||||||
|
|
||||||
// Allow explicit conversion to DSNode...
|
// Allow explicit conversion to DSNode...
|
||||||
DSNode *getNode() const { return N; }
|
inline DSNode *getNode() const; // Defined inline in DSNode.h
|
||||||
unsigned getOffset() const { return Offset; }
|
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 setOffset(unsigned O) { Offset = O; }
|
||||||
|
|
||||||
void addEdgeTo(unsigned LinkNo, const DSNodeHandle &N);
|
void addEdgeTo(unsigned LinkNo, const DSNodeHandle &N);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user