1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Allow the AsmWriter to print out arbitrary precision integers.

llvm-svn: 34664
This commit is contained in:
Reid Spencer 2007-02-27 08:34:09 +00:00
parent 74764708fa
commit b05cb31bdf

View File

@ -464,7 +464,7 @@ static void WriteConstantInt(std::ostream &Out, const Constant *CV,
if (CI->getType() == Type::Int1Ty)
Out << (CI->getZExtValue() ? "true" : "false");
else
Out << CI->getSExtValue();
Out << CI->getValue().toString(10,/*wantSigned=*/true);
} else if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV)) {
// 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