From: Chris Lattner Date: Tue, 9 Apr 2002 05:16:08 +0000 (+0000) Subject: Use new higher level isFloatingPoint() function X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c1ffdb10f3be86fae71379e4e1e169601fea62a2;p=oota-llvm.git Use new higher level isFloatingPoint() function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2191 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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"; }