Skip to content

Commit

Permalink
[Wasm][LTO][NPM] Use NPM for LTO with ENABLE_EXPERIMENTAL_NEW_PASS_MA…
Browse files Browse the repository at this point in the history
…NAGER

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D92867
  • Loading branch information
aeubanks committed Dec 14, 2020
1 parent 1fd1f63 commit e814013
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lld/wasm/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "lld/Common/Strings.h"
#include "lld/Common/Version.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Object/Wasm.h"
#include "llvm/Option/Arg.h"
#include "llvm/Option/ArgList.h"
Expand Down Expand Up @@ -379,8 +380,9 @@ static void readConfigs(opt::InputArgList &args) {
config->importTable = args.hasArg(OPT_import_table);
config->ltoo = args::getInteger(args, OPT_lto_O, 2);
config->ltoPartitions = args::getInteger(args, OPT_lto_partitions, 1);
config->ltoNewPassManager = args.hasFlag(OPT_lto_new_pass_manager,
OPT_no_lto_new_pass_manager, false);
config->ltoNewPassManager =
args.hasFlag(OPT_lto_new_pass_manager, OPT_no_lto_new_pass_manager,
LLVM_ENABLE_NEW_PASS_MANAGER);
config->ltoDebugPassManager = args.hasArg(OPT_lto_debug_pass_manager);
config->mapFile = args.getLastArgValue(OPT_Map);
config->optimize = args::getInteger(args, OPT_O, 0);
Expand Down

0 comments on commit e814013

Please sign in to comment.