Use new higher level isFloatingPoint() function
authorChris Lattner <sabre@nondot.org>
Tue, 9 Apr 2002 05:16:08 +0000 (05:16 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 9 Apr 2002 05:16:08 +0000 (05:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2191 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9AsmPrinter.cpp

index 83a8b644945d754fdf7d6588b15be96c8660a90c..02eeca49e53f3f5555d58050ae480645335dafba 100644 (file)
@@ -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";
     }