Make EH work with unnamed functions. Reenable running
StripSymbols when EH is on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49110 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp
index 71bd9e6..ff9ba91 100644
--- a/tools/lto/lto.cpp
+++ b/tools/lto/lto.cpp
@@ -303,10 +303,7 @@
// 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(!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());