From: Devang Patel Date: Thu, 3 Apr 2008 21:30:06 +0000 (+0000) Subject: Reenable running StripSymbols when EH is on. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e27847056d5b0e4e539938aca993d4b62c3c7fe5;p=oota-llvm.git Reenable running StripSymbols when EH is on. Dale fixed EH. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49192 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/lto2/LTOCodeGenerator.cpp b/tools/lto2/LTOCodeGenerator.cpp index 429d6c4f59d..4c5850acb4f 100644 --- a/tools/lto2/LTOCodeGenerator.cpp +++ b/tools/lto2/LTOCodeGenerator.cpp @@ -350,11 +350,7 @@ bool LTOCodeGenerator::generateAssemblyCode(std::ostream& out, std::string& errM // 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( !llvm::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());