Do not strip symbols when EH is ON.

llvm-svn: 46657
This commit is contained in:
Devang Patel 2008-02-02 01:32:38 +00:00
parent 931e121ad1
commit 1a06334403
1 changed files with 4 additions and 1 deletions

View File

@ -292,7 +292,10 @@ LTO::optimize(Module *M, std::ostream &Out,
// 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.
Passes.add(createStripSymbolsPass());
if(!ExceptionHandling)
// FIXME : This causes multiple nameless _.eh symbols on
// darwin when EH is ON.
Passes.add(createStripSymbolsPass());
// Propagate constants at call sites into the functions they call.
Passes.add(createIPConstantPropagationPass());