projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdf15e1
)
Remove a call to Type::isSigned().
author
Reid Spencer
<rspencer@reidspencer.com>
Mon, 18 Dec 2006 07:58:01 +0000
(07:58 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Mon, 18 Dec 2006 07:58:01 +0000
(07:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32651
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm2cpp/CppWriter.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm2cpp/CppWriter.cpp
b/tools/llvm2cpp/CppWriter.cpp
index 2d0a3be0df2c32d78015af079a913a0db8a5ba20..cc04288e74512ca353cb74cda6a2bf40cc9797bc 100644
(file)
--- a/
tools/llvm2cpp/CppWriter.cpp
+++ b/
tools/llvm2cpp/CppWriter.cpp
@@
-680,9
+680,7
@@
void CppWriter::printConstant(const Constant *CV) {
<< (CB->getValue() ? "true" : "false") << ");";
} else if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
Out << "ConstantInt* " << constName << " = ConstantInt::get("
- << typeName << ", "
- << (CV->getType()->isSigned() ? CI->getSExtValue() : CI->getZExtValue())
- << ");";
+ << typeName << ", " << CI->getZExtValue() << ");";
} else if (isa<ConstantAggregateZero>(CV)) {
Out << "ConstantAggregateZero* " << constName
<< " = ConstantAggregateZero::get(" << typeName << ");";