void visitBranchInst(BranchInst &I);
void visitSwitchInst(SwitchInst &I);
void visitInvokeInst(InvokeInst &I) {
- LLVM_UNREACHABLE("Lowerinvoke pass didn't work!");
+ llvm_unreachable("Lowerinvoke pass didn't work!");
}
void visitUnwindInst(UnwindInst &I) {
- LLVM_UNREACHABLE("Lowerinvoke pass didn't work!");
+ llvm_unreachable("Lowerinvoke pass didn't work!");
}
void visitUnreachableInst(UnreachableInst &I);
#ifndef NDEBUG
cerr << "C Writer does not know about " << I;
#endif
- llvm_unreachable();
+ llvm_unreachable(0);
}
void outputLValue(Instruction *I) {
#ifndef NDEBUG
cerr << "Unknown primitive type: " << *Ty << "\n";
#endif
- llvm_unreachable();
+ llvm_unreachable(0);
}
}
#ifndef NDEBUG
cerr << "Unknown primitive type: " << *Ty << "\n";
#endif
- llvm_unreachable();
+ llvm_unreachable(0);
}
}
return Out << TyName << ' ' << NameSoFar;
}
default:
- LLVM_UNREACHABLE("Unhandled case in getTypeProps!");
+ llvm_unreachable("Unhandled case in getTypeProps!");
}
return Out;
return Out << TyName << ' ' << NameSoFar;
}
default:
- LLVM_UNREACHABLE("Unhandled case in getTypeProps!");
+ llvm_unreachable("Unhandled case in getTypeProps!");
}
return Out;
Out << ')';
break;
default:
- LLVM_UNREACHABLE("Invalid cast opcode");
+ llvm_unreachable("Invalid cast opcode");
}
// Print the source type cast
case Instruction::FPToUI:
break; // These don't need a source cast.
default:
- LLVM_UNREACHABLE("Invalid cast opcode");
+ llvm_unreachable("Invalid cast opcode");
break;
}
}
case ICmpInst::ICMP_UGT: Out << " > "; break;
case ICmpInst::ICMP_SGE:
case ICmpInst::ICMP_UGE: Out << " >= "; break;
- default: LLVM_UNREACHABLE("Illegal ICmp predicate");
+ default: llvm_unreachable("Illegal ICmp predicate");
}
break;
- default: LLVM_UNREACHABLE("Illegal opcode here!");
+ default: llvm_unreachable("Illegal opcode here!");
}
printConstantWithCast(CE->getOperand(1), CE->getOpcode());
if (NeedsClosingParens)
else {
const char* op = 0;
switch (CE->getPredicate()) {
- default: LLVM_UNREACHABLE("Illegal FCmp predicate");
+ default: llvm_unreachable("Illegal FCmp predicate");
case FCmpInst::FCMP_ORD: op = "ord"; break;
case FCmpInst::FCMP_UNO: op = "uno"; break;
case FCmpInst::FCMP_UEQ: op = "ueq"; break;
cerr << "CWriter Error: Unhandled constant expression: "
<< *CE << "\n";
#endif
- llvm_unreachable();
+ llvm_unreachable(0);
}
} else if (isa<UndefValue>(CPV) && CPV->getType()->isSingleValueType()) {
Out << "((";
#ifndef NDEBUG
cerr << "Unknown constant type: " << *CPV << "\n";
#endif
- llvm_unreachable();
+ llvm_unreachable(0);
}
}
<< "}; /* Long double constant */\n";
} else {
- LLVM_UNREACHABLE("Unknown float type!");
+ llvm_unreachable("Unknown float type!");
}
}
#ifndef NDEBUG
cerr << "Invalid operator type!" << I;
#endif
- llvm_unreachable();
+ llvm_unreachable(0);
}
writeOperandWithCast(I.getOperand(1), I.getOpcode());
#ifndef NDEBUG
cerr << "Invalid icmp predicate!" << I;
#endif
- llvm_unreachable();
+ llvm_unreachable(0);
}
writeOperandWithCast(I.getOperand(1), I);
const char* op = 0;
switch (I.getPredicate()) {
- default: LLVM_UNREACHABLE("Illegal FCmp predicate");
+ default: llvm_unreachable("Illegal FCmp predicate");
case FCmpInst::FCMP_ORD: op = "ord"; break;
case FCmpInst::FCMP_UNO: op = "uno"; break;
case FCmpInst::FCMP_UEQ: op = "ueq"; break;
static const char * getFloatBitCastField(const Type *Ty) {
switch (Ty->getTypeID()) {
- default: LLVM_UNREACHABLE("Invalid Type");
+ default: llvm_unreachable("Invalid Type");
case Type::FloatTyID: return "Float";
case Type::DoubleTyID: return "Double";
case Type::IntegerTyID: {
Out << ')';
// Multiple GCC builtins multiplex onto this intrinsic.
switch (cast<ConstantInt>(I.getOperand(3))->getZExtValue()) {
- default: LLVM_UNREACHABLE("Invalid llvm.x86.sse.cmp!");
+ default: llvm_unreachable("Invalid llvm.x86.sse.cmp!");
case 0: Out << "__builtin_ia32_cmpeq"; break;
case 1: Out << "__builtin_ia32_cmplt"; break;
case 2: Out << "__builtin_ia32_cmple"; break;
}
void CWriter::visitMallocInst(MallocInst &I) {
- LLVM_UNREACHABLE("lowerallocations pass didn't work!");
+ llvm_unreachable("lowerallocations pass didn't work!");
}
void CWriter::visitAllocaInst(AllocaInst &I) {
}
void CWriter::visitFreeInst(FreeInst &I) {
- LLVM_UNREACHABLE("lowerallocations pass didn't work!");
+ llvm_unreachable("lowerallocations pass didn't work!");
}
void CWriter::printGEPExpression(Value *Ptr, gep_type_iterator I,