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:
Ruchira Sasanka 2001-11-13 23:08:19 +00:00
parent 689e076b90
commit 5f98aca57c

View File

@ -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);