diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-04-29 14:14:06 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-04-29 14:14:06 +0000 |
commit | b7a012a28271dbcaa5282bcf854453888b1e7dbd (patch) | |
tree | 5af310680fe944c3547db3312ca95b545ab8b085 /llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp | |
parent | 10d2ded91061374a6d14ce0ff2630a8627c1b21c (diff) | |
download | bcm5719-llvm-b7a012a28271dbcaa5282bcf854453888b1e7dbd.tar.gz bcm5719-llvm-b7a012a28271dbcaa5282bcf854453888b1e7dbd.zip |
Factor some code to needsCFIMoves. Avoid printing moves when we don't have to.
llvm-svn: 130501
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp index 1dcfddf1a18..e85d5298a0c 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp @@ -78,8 +78,7 @@ void DwarfCFIException::BeginFunction(const MachineFunction *MF) { shouldEmitTable = !MMI->getLandingPads().empty(); // See if we need frame move info. - shouldEmitMoves = MMI->hasDebugInfo() || - !Asm->MF->getFunction()->doesNotThrow() || UnwindTablesMandatory; + shouldEmitMoves = Asm->needsCFIMoves(); if (shouldEmitMoves || shouldEmitTable) // Assumes in correct section after the entry point. |