diff options
Diffstat (limited to 'lib/Target/CBackend/Writer.cpp')
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 98fc05bf23..fdd9b4bc0d 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -396,6 +396,8 @@ void CWriter::printConstant(Constant *CPV) { case Instruction::SetLE: case Instruction::SetGT: case Instruction::SetGE: + case Instruction::Shl: + case Instruction::Shr: Out << "("; printConstant(CE->getOperand(0)); switch (CE->getOpcode()) { @@ -410,6 +412,8 @@ void CWriter::printConstant(Constant *CPV) { case Instruction::SetLE: Out << " <= "; break; case Instruction::SetGT: Out << " > "; break; case Instruction::SetGE: Out << " >= "; break; + case Instruction::Shl: Out << " << "; break; + case Instruction::Shr: Out << " >> "; break; default: assert(0 && "Illegal opcode here!"); } printConstant(CE->getOperand(1)); |