summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-09 05:16:08 +0000
committerChris Lattner <sabre@nondot.org>2002-04-09 05:16:08 +0000
commit46f8b0e7594f64b0310d47ee44a2bef81dad2226 (patch)
tree71d4c4e867a3f55684b11efdfdeebae9da70d07f /llvm/lib
parent6c1a58d6ba3242adf47f76ccbbc10aedd777c4c2 (diff)
downloadbcm5719-llvm-46f8b0e7594f64b0310d47ee44a2bef81dad2226.tar.gz
bcm5719-llvm-46f8b0e7594f64b0310d47ee44a2bef81dad2226.zip
Use new higher level isFloatingPoint() function
llvm-svn: 2191
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Sparc/EmitAssembly.cpp2
1 files changed, 1 insertions, 1 deletions
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";
}
OpenPOWER on IntegriCloud