added a method to get reg num after register allocation

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@596 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ruchira Sasanka 2001-09-15 21:11:48 +00:00
parent 6b0a8b5b1a
commit 475253b430

View File

@ -147,6 +147,14 @@ public:
regNum = reg;
}
// used to get the reg number if when one is allocted (must be
// called only after reg alloc)
inline unsigned int getAllocatedRegNum() const {
assert(opType == MO_VirtualRegister || opType == MO_CCRegister ||
opType == MO_MachineRegister);
return regNum;
}
};