mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 22:23:00 +00:00
Remove getAllocatedRegNum(). Use getReg() instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11393 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -277,15 +277,12 @@ public:
|
||||
}
|
||||
|
||||
// used to get the reg number if when one is allocated
|
||||
int getAllocatedRegNum() const {
|
||||
unsigned getReg() const {
|
||||
assert(hasAllocatedReg());
|
||||
return regNum;
|
||||
}
|
||||
|
||||
// ********** TODO: get rid of this duplicate code! ***********
|
||||
unsigned getReg() const {
|
||||
return getAllocatedRegNum();
|
||||
}
|
||||
void setReg(unsigned Reg) {
|
||||
assert(hasAllocatedReg() && "This operand cannot have a register number!");
|
||||
regNum = Reg;
|
||||
|
||||
@@ -149,7 +149,7 @@ public:
|
||||
|
||||
// returns the register that is hardwired to zero if any (-1 if none)
|
||||
//
|
||||
virtual int getZeroRegNum() const = 0;
|
||||
virtual unsigned getZeroRegNum() const = 0;
|
||||
|
||||
// Number of registers used for passing int args (usually 6: %o0 - %o5)
|
||||
// and float args (usually 32: %f0 - %f31)
|
||||
|
||||
Reference in New Issue
Block a user