mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 22:50:47 +00:00
Changed checking for invalid register number - earlier it was uisng a contant
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1293 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
689e076b90
commit
5f98aca57c
@ -227,7 +227,7 @@ SparcAsmPrinter::printOneOperand(const MachineOperand &op)
|
||||
int RegNum = (int)op.getAllocatedRegNum();
|
||||
|
||||
// ****this code is temporary till NULL Values are fixed
|
||||
if (RegNum == 10000) {
|
||||
if (RegNum == Target.getRegInfo().getInvalidRegNum()) {
|
||||
toAsm << "<NULL VALUE>";
|
||||
} else {
|
||||
toAsm << "%" << Target.getRegInfo().getUnifiedRegName(RegNum);
|
||||
|
Loading…
Reference in New Issue
Block a user