Minor change: Methods that return ValueSet's that are guaranteed to be valid

return references instead of pointers.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1719 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2002-02-05 04:20:12 +00:00
parent 3773094a1d
commit 748697d242
17 changed files with 114 additions and 146 deletions

View File

@@ -37,11 +37,9 @@ class RegClass;
//----------------------------------------------------------------------------
class IGNode {
const int Index; // index within IGNodeList
bool OnStack; // this has been pushed on to stack for coloring
std::vector<IGNode *> AdjList; // adjacency list for this live range
const unsigned Index; // index within IGNodeList
bool OnStack; // this has been pushed on to stack for coloring
std::vector<IGNode *> AdjList;// adjacency list for this live range
int CurDegree;
//
@@ -50,12 +48,14 @@ class IGNode {
// Decremented when a neighbor is pushed on to the stack.
// After that, never incremented/set again nor used.
LiveRange *const ParentLR; // parent LR (cannot be a const)
LiveRange *const ParentLR;
public:
// constructor
//
IGNode(LiveRange *LR, unsigned index);
IGNode(LiveRange *LR, unsigned index) : Index(index), ParentLR(LR) {
OnStack = false;
CurDegree = -1;
ParentLR->setUserIGNode(this);
}
inline unsigned int getIndex() const { return Index; }