diff options
author | Devang Patel <dpatel@apple.com> | 2008-02-02 01:32:38 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-02-02 01:32:38 +0000 |
commit | bc9ed593d7624eb01b498776042eb438137ef007 (patch) | |
tree | dbdcba9cc66db77669500bcda6e9fa427aa3989d /tools | |
parent | e62a8a353c3b21b551c00b9025800d3352e5349e (diff) | |
download | external_llvm-bc9ed593d7624eb01b498776042eb438137ef007.zip external_llvm-bc9ed593d7624eb01b498776042eb438137ef007.tar.gz external_llvm-bc9ed593d7624eb01b498776042eb438137ef007.tar.bz2 |
Do not strip symbols when EH is ON.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lto/lto.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index c7a3637..ae7f333 100644 --- a/tools/lto/lto.cpp +++ b/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()); |