mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-26 22:45:05 +00:00
Allow the AsmWriter to print out arbitrary precision integers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34664 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8374db81a8
commit
940685ecf5
@ -464,7 +464,7 @@ static void WriteConstantInt(std::ostream &Out, const Constant *CV,
|
|||||||
if (CI->getType() == Type::Int1Ty)
|
if (CI->getType() == Type::Int1Ty)
|
||||||
Out << (CI->getZExtValue() ? "true" : "false");
|
Out << (CI->getZExtValue() ? "true" : "false");
|
||||||
else
|
else
|
||||||
Out << CI->getSExtValue();
|
Out << CI->getValue().toString(10,/*wantSigned=*/true);
|
||||||
} else if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV)) {
|
} else if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV)) {
|
||||||
// We would like to output the FP constant value in exponential notation,
|
// We would like to output the FP constant value in exponential notation,
|
||||||
// but we cannot do this if doing so will lose precision. Check here to
|
// but we cannot do this if doing so will lose precision. Check here to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user