diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-12 23:26:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-12 23:26:17 +0000 |
commit | 90c6e6835d79c2bfac3a707bd4c422dac6d04c1c (patch) | |
tree | 2c3fab839c7d4d0439d3696dcb18e320ad87e9e3 /llvm/lib/Bytecode | |
parent | 65258e9ef3adab06555c6363637e9dc0458f6e03 (diff) | |
download | bcm5719-llvm-90c6e6835d79c2bfac3a707bd4c422dac6d04c1c.tar.gz bcm5719-llvm-90c6e6835d79c2bfac3a707bd4c422dac6d04c1c.zip |
remove unneeded special case for bool
llvm-svn: 33156
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r-- | llvm/lib/Bytecode/Writer/Writer.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/Bytecode/Writer/Writer.cpp b/llvm/lib/Bytecode/Writer/Writer.cpp index 10a151d19cf..b7987b2e944 100644 --- a/llvm/lib/Bytecode/Writer/Writer.cpp +++ b/llvm/lib/Bytecode/Writer/Writer.cpp @@ -325,12 +325,7 @@ void BytecodeWriter::outputConstant(const Constant *CPV) { switch (CPV->getType()->getTypeID()) { case Type::IntegerTyID: { // Integer types... unsigned NumBits = cast<IntegerType>(CPV->getType())->getBitWidth(); - if (NumBits == 1) - if (cast<ConstantInt>(CPV)->getZExtValue()) - output_vbr(1U); - else - output_vbr(0U); - else if (NumBits <= 32) + if (NumBits <= 32) output_vbr(uint32_t(cast<ConstantInt>(CPV)->getZExtValue())); else if (NumBits <= 64) output_vbr(uint64_t(cast<ConstantInt>(CPV)->getZExtValue())); |