1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

List all exception types in a switch.

llvm-svn: 130944
This commit is contained in:
Rafael Espindola 2011-05-05 19:48:34 +00:00
parent cd459f78ef
commit a99111bae9

View File

@ -189,21 +189,22 @@ bool AsmPrinter::doInitialization(Module &M) {
if (MAI->doesSupportDebugInformation())
DD = new DwarfDebug(this, &M);
if (MAI->doesSupportExceptionHandling())
switch (MAI->getExceptionHandlingType()) {
default:
case ExceptionHandling::DwarfTable:
DE = new DwarfTableException(this);
break;
case ExceptionHandling::DwarfCFI:
DE = new DwarfCFIException(this);
break;
case ExceptionHandling::ARM:
DE = new ARMException(this);
break;
}
switch (MAI->getExceptionHandlingType()) {
case ExceptionHandling::None:
return false;
case ExceptionHandling::SjLj:
case ExceptionHandling::DwarfTable:
DE = new DwarfTableException(this);
return false;
case ExceptionHandling::DwarfCFI:
DE = new DwarfCFIException(this);
return false;
case ExceptionHandling::ARM:
DE = new ARMException(this);
return false;
}
return false;
llvm_unreachable("Unknown exception type.");
}
void AsmPrinter::EmitLinkage(unsigned Linkage, MCSymbol *GVSym) const {