mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 08:01:11 +03:00
Remove a bit of code duplication.
This commit is contained in:
parent
5d63aeaed9
commit
664c2c333e
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ static void addPassesForOptLevel(PassManager& pm) {
|
||||||
// Returns true if any optimization passes were invoked.
|
// Returns true if any optimization passes were invoked.
|
||||||
bool ldc_optimize_module(llvm::Module* m)
|
bool ldc_optimize_module(llvm::Module* m)
|
||||||
{
|
{
|
||||||
if (!doInline() && optimizeLevel == 0 && passList.empty())
|
if (!optimize())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
PassManager pm;
|
PassManager pm;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue