diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-18 07:58:01 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-18 07:58:01 +0000 |
commit | f6c511cbb1bc867f6c8dfe756d74ce0595b29daa (patch) | |
tree | f27bf36d4db68811eaa35b3c20f63134e5eda30a /tools/llvm2cpp/CppWriter.cpp | |
parent | fdf15e1dc8f1c4cb48a16eb20c536072ca7188fd (diff) |
Remove a call to Type::isSigned().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32651 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm2cpp/CppWriter.cpp')
-rw-r--r-- | tools/llvm2cpp/CppWriter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/llvm2cpp/CppWriter.cpp b/tools/llvm2cpp/CppWriter.cpp index 2d0a3be0df..cc04288e74 100644 --- 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 << ");"; |