diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-05-10 21:04:45 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-05-10 21:04:45 +0000 |
commit | 19c1a562876e1842d8c066b96f1417cde18a02e7 (patch) | |
tree | f4bcc5891cd4861884ea8f5fb1af515e40d53370 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 99f6735532f78ab9d2da1edd10fb1939cd046f8a (diff) | |
download | bcm5719-llvm-19c1a562876e1842d8c066b96f1417cde18a02e7.tar.gz bcm5719-llvm-19c1a562876e1842d8c066b96f1417cde18a02e7.zip |
Produce a __debug_frame section on darwin ARM when appropriate.
llvm-svn: 131151
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 7f39cef3f9e..5a913410970 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -193,8 +193,6 @@ bool AsmPrinter::doInitialization(Module &M) { case ExceptionHandling::None: return false; case ExceptionHandling::SjLj: - DE = new DwarfSjLjException(this); - return false; case ExceptionHandling::DwarfCFI: DE = new DwarfCFIException(this); return false; @@ -593,11 +591,13 @@ static bool EmitDebugValueComment(const MachineInstr *MI, AsmPrinter &AP) { } AsmPrinter::CFIMoveType AsmPrinter::needsCFIMoves() { - if (UnwindTablesMandatory) - return CFI_M_EH; + if (MAI->getExceptionHandlingType() == ExceptionHandling::DwarfCFI) { + if (UnwindTablesMandatory) + return CFI_M_EH; - if (!MF->getFunction()->doesNotThrow()) - return CFI_M_EH; + if (!MF->getFunction()->doesNotThrow()) + return CFI_M_EH; + } if (MMI->hasDebugInfo()) return CFI_M_Debug; |