Reenable running StripSymbols when EH is on.
authorDevang Patel <dpatel@apple.com>
Thu, 3 Apr 2008 21:30:06 +0000 (21:30 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 3 Apr 2008 21:30:06 +0000 (21:30 +0000)
Dale fixed EH.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49192 91177308-0d34-0410-b5e6-96231b3b80d8

tools/lto2/LTOCodeGenerator.cpp

index 429d6c4f59d4a1bbd27e4f3c23feaf8ef93cf732..4c5850acb4fc3577c3a88fc4ff0ffa9799f8ac0a 100644 (file)
@@ -350,11 +350,7 @@ bool LTOCodeGenerator::generateAssemblyCode(std::ostream& out, std::string& errM
     // If the -s command line option was specified, strip the symbols out of the
     // resulting program to make it smaller.  -s is a GLD option that we are
     // supporting.
-    if( !llvm::ExceptionHandling ) {
-        // FIXME : This causes multiple nameless _.eh symbols on 
-        // darwin when EH is ON.
-        passes.add(createStripSymbolsPass());
-    }
+    passes.add(createStripSymbolsPass());
     
     // Propagate constants at call sites into the functions they call.
     passes.add(createIPConstantPropagationPass());