From c1ffdb10f3be86fae71379e4e1e169601fea62a2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 9 Apr 2002 05:16:08 +0000 Subject: [PATCH] Use new higher level isFloatingPoint() function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2191 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 83a8b644945..02eeca49e53 100644 --- a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp +++ b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp @@ -613,7 +613,7 @@ SparcModuleAsmPrinter::printSingleConstant(const Constant* CV) if (CV->getType()->isPrimitiveType()) { - if (CV->getType() == Type::FloatTy || CV->getType() == Type::DoubleTy) + if (CV->getType()->isFloatingPoint()) toAsm << "0r"; // FP constants must have this prefix toAsm << CV->getStrValue() << "\n"; } -- 2.34.1