From 5f98aca57c13cf8a6253962fa6b3040599b04bfe Mon Sep 17 00:00:00 2001 From: Ruchira Sasanka Date: Tue, 13 Nov 2001 23:08:19 +0000 Subject: [PATCH] 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 --- lib/Target/SparcV9/SparcV9AsmPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp index 24efa26b496..618fb6dc30f 100644 --- a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp +++ b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp @@ -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 << ""; } else { toAsm << "%" << Target.getRegInfo().getUnifiedRegName(RegNum);