OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8374db8
)
Allow the AsmWriter to print out arbitrary precision integers.
author
Reid Spencer
<rspencer@reidspencer.com>
Tue, 27 Feb 2007 08:34:09 +0000
(08:34 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Tue, 27 Feb 2007 08:34:09 +0000
(08:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34664
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/AsmWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/AsmWriter.cpp
b/lib/VMCore/AsmWriter.cpp
index
fbe5f07
..
739c521
100644
(file)
--- 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->get
SExtValue(
);
+ Out << CI->get
Value().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