mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
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
This commit is contained in:
parent
e62a8a353c
commit
bc9ed593d7
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user