diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-09 05:16:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-09 05:16:08 +0000 |
commit | c1ffdb10f3be86fae71379e4e1e169601fea62a2 (patch) | |
tree | 2cd3ba57fbb5199db06cffa4a28d0018adc61ef4 /lib/Target | |
parent | f3dd05ca03c9c649bf5b8891b73cda1e11ab914e (diff) | |
download | external_llvm-c1ffdb10f3be86fae71379e4e1e169601fea62a2.zip external_llvm-c1ffdb10f3be86fae71379e4e1e169601fea62a2.tar.gz external_llvm-c1ffdb10f3be86fae71379e4e1e169601fea62a2.tar.bz2 |
Use new higher level isFloatingPoint() function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/SparcV9/SparcV9AsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp index 83a8b64..02eeca4 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"; } |