mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
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.
This commit is contained in:
@@ -196,12 +196,6 @@ void Module::genobjfile(int multiobj)
|
||||
}
|
||||
}
|
||||
|
||||
// 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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user