forked from OSchip/llvm-project
parent
3dc73aae5e
commit
240c96e2ca
|
@ -189,21 +189,22 @@ bool AsmPrinter::doInitialization(Module &M) {
|
||||||
if (MAI->doesSupportDebugInformation())
|
if (MAI->doesSupportDebugInformation())
|
||||||
DD = new DwarfDebug(this, &M);
|
DD = new DwarfDebug(this, &M);
|
||||||
|
|
||||||
if (MAI->doesSupportExceptionHandling())
|
|
||||||
switch (MAI->getExceptionHandlingType()) {
|
switch (MAI->getExceptionHandlingType()) {
|
||||||
default:
|
case ExceptionHandling::None:
|
||||||
|
return false;
|
||||||
|
case ExceptionHandling::SjLj:
|
||||||
case ExceptionHandling::DwarfTable:
|
case ExceptionHandling::DwarfTable:
|
||||||
DE = new DwarfTableException(this);
|
DE = new DwarfTableException(this);
|
||||||
break;
|
return false;
|
||||||
case ExceptionHandling::DwarfCFI:
|
case ExceptionHandling::DwarfCFI:
|
||||||
DE = new DwarfCFIException(this);
|
DE = new DwarfCFIException(this);
|
||||||
break;
|
return false;
|
||||||
case ExceptionHandling::ARM:
|
case ExceptionHandling::ARM:
|
||||||
DE = new ARMException(this);
|
DE = new ARMException(this);
|
||||||
break;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
llvm_unreachable("Unknown exception type.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void AsmPrinter::EmitLinkage(unsigned Linkage, MCSymbol *GVSym) const {
|
void AsmPrinter::EmitLinkage(unsigned Linkage, MCSymbol *GVSym) const {
|
||||||
|
|
Loading…
Reference in New Issue