Mercurial > projects > ldc
comparison gen/optimizer.cpp @ 663:6aaa3d3c1183
First part of rename to LDC.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Mon, 06 Oct 2008 22:46:55 +0200 |
parents | 9526b29ae342 |
children | e40c65bd8c5d |
comparison
equal
deleted
inserted
replaced
662:88e23f8c2354 | 663:6aaa3d3c1183 |
---|---|
8 ////////////////////////////////////////////////////////////////////////////////////////// | 8 ////////////////////////////////////////////////////////////////////////////////////////// |
9 | 9 |
10 // this function runs some or all of the std-compile-opts passes depending on the | 10 // this function runs some or all of the std-compile-opts passes depending on the |
11 // optimization level given. | 11 // optimization level given. |
12 | 12 |
13 void llvmdc_optimize_module(Module* m, char lvl, bool doinline) | 13 void ldc_optimize_module(Module* m, char lvl, bool doinline) |
14 { | 14 { |
15 if (!doinline && lvl < 0) | 15 if (!doinline && lvl < 0) |
16 return; | 16 return; |
17 | 17 |
18 PassManager pm; | 18 PassManager pm; |