forked from OSchip/llvm-project
added a method to get reg num after register allocation
llvm-svn: 596
This commit is contained in:
parent
8efbd10c86
commit
3a3bb0d68c
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue