# HG changeset patch # User Christian Kamm # Date 1234460343 -3600 # Node ID e71c61befd6d92c023864d1631846ab1799b0234 # Parent 780530d1cad3f52244ae60f185906fd41573f93d Now that we're using LLVM 2.5, we can stop always running the CFGSimplification pass. The pass was originally added as a workaround for a LLVM 2.4 bug where debug info would reference labels that have been optimized away. diff -r 780530d1cad3 -r e71c61befd6d gen/toobj.cpp --- a/gen/toobj.cpp Sun Feb 08 21:44:46 2009 +0100 +++ b/gen/toobj.cpp Thu Feb 12 18:39:03 2009 +0100 @@ -196,12 +196,6 @@ } } - // always run this pass to eliminate dead code that breaks debug info - llvm::PassManager pm; - pm.add(new llvm::TargetData(ir.module)); - pm.add(llvm::createCFGSimplificationPass()); - pm.run(*ir.module); - // run optimizer ldc_optimize_module(ir.module, global.params.optimizeLevel, global.params.llvmInline);