Use new higher level isFloatingPoint() function

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2191 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-04-09 05:16:08 +00:00
parent f3dd05ca03
commit c1ffdb10f3

View 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";
}