projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3dd05c
)
Use new higher level isFloatingPoint() function
author
Chris Lattner
<sabre@nondot.org>
Tue, 9 Apr 2002 05:16:08 +0000
(
05:16
+0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
index 83a8b644945d754fdf7d6588b15be96c8660a90c..02eeca49e53f3f5555d58050ae480645335dafba 100644
(file)
--- 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";
}