[llvm-commits] [llvm-gcc-4.2] r49253 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Dale Johannesen
dalej at apple.com
Sat Apr 5 11:41:27 PDT 2008
Author: johannes
Date: Sat Apr 5 13:41:27 2008
New Revision: 49253
URL: http://llvm.org/viewvc/llvm-project?rev=49253&view=rev
Log:
Don't remove "unused" EH info when -funwind-tables is on;
this is an indication that the unwind info is not for
exceptions but for something else, so the compiler
shouldn't remove it.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=49253&r1=49252&r2=49253&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Sat Apr 5 13:41:27 2008
@@ -351,7 +351,7 @@
// DISABLE PREDSIMPLIFY UNTIL PR967 is fixed.
//PM->add(createPredicateSimplifierPass()); // Canonicalize registers
PM->add(createCFGSimplificationPass()); // Clean up after IPCP & DAE
- if (flag_unit_at_a_time)
+ if (flag_unit_at_a_time && !flag_unwind_tables)
PM->add(createPruneEHPass()); // Remove dead EH info
if (optimize > 1) {
More information about the llvm-commits
mailing list