summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-12 18:15:09 +0000
committerChris Lattner <sabre@nondot.org>2007-01-12 18:15:09 +0000
commit7f6fac4bb5a425fde5c40fbe781c00244eb1c9fb (patch)
treefdfb178364d160f0232091c5ade784d6de7cfe37 /llvm
parent2759b18e5dd690afdc47135a9a1202064af425ed (diff)
downloadbcm5719-llvm-7f6fac4bb5a425fde5c40fbe781c00244eb1c9fb.tar.gz
bcm5719-llvm-7f6fac4bb5a425fde5c40fbe781c00244eb1c9fb.zip
Simplify code
llvm-svn: 33123
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp
index aba97c1cfc8..398a7b33d1a 100644
--- a/llvm/lib/CodeGen/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter.cpp
@@ -389,10 +389,7 @@ void AsmPrinter::EmitConstantValueOnly(const Constant *CV) {
if (CV->isNullValue() || isa<UndefValue>(CV))
O << "0";
else if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
- if (CI->getType() == Type::Int1Ty) {
- assert(CI->getZExtValue());
- O << "1";
- } else O << CI->getSExtValue();
+ O << CI->getZExtValue();
} else if (const GlobalValue *GV = dyn_cast<GlobalValue>(CV)) {
// This is a constant address for a global variable or function. Use the
// name of the variable or function as the address value, possibly
OpenPOWER on IntegriCloud