From 46f8b0e7594f64b0310d47ee44a2bef81dad2226 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 9 Apr 2002 05:16:08 +0000 Subject: Use new higher level isFloatingPoint() function llvm-svn: 2191 --- llvm/lib/Target/Sparc/EmitAssembly.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/Sparc') diff --git a/llvm/lib/Target/Sparc/EmitAssembly.cpp b/llvm/lib/Target/Sparc/EmitAssembly.cpp index 83a8b644945..02eeca49e53 100644 --- a/llvm/lib/Target/Sparc/EmitAssembly.cpp +++ b/llvm/lib/Target/Sparc/EmitAssembly.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"; } -- cgit v1.2.3