From: Reid Spencer Date: Tue, 27 Feb 2007 08:34:09 +0000 (+0000) Subject: Allow the AsmWriter to print out arbitrary precision integers. X-Git-Tag: android-x86-6.0-r1~1003^2~36879 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=940685ecf554fcfd03a0b6f66e5acba2a612a70d;p=android-x86%2Fexternal-llvm.git 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 --- diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index fbe5f07d8a3..739c52129e4 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -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(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