From 1a063344037029453a715dbd4c86248d5fd550c6 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Sat, 2 Feb 2008 01:32:38 +0000 Subject: [PATCH] Do not strip symbols when EH is ON. llvm-svn: 46657 --- llvm/tools/lto/lto.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/llvm/tools/lto/lto.cpp b/llvm/tools/lto/lto.cpp index c7a363768b8a..ae7f333188b4 100644 --- a/llvm/tools/lto/lto.cpp +++ b/llvm/tools/lto/lto.cpp @@ -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());