mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-20 11:29:24 +00:00
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:
parent
f3dd05ca03
commit
c1ffdb10f3
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user