Add support for select constant expressions to the CBE, fixing SIOD

llvm-svn: 12589
This commit is contained in:
Chris Lattner 2004-04-01 05:28:26 +00:00
parent bc7e35b3b1
commit b28dd11e33
1 changed files with 9 additions and 0 deletions

View File

@ -388,6 +388,15 @@ void CWriter::printConstant(Constant *CPV) {
gep_type_end(CPV));
Out << "))";
return;
case Instruction::Select:
Out << "(";
printConstant(CE->getOperand(0));
Out << "?";
printConstant(CE->getOperand(1));
Out << ":";
printConstant(CE->getOperand(2));
Out << ")";
return;
case Instruction::Add:
case Instruction::Sub:
case Instruction::Mul: