diff options
author | Arthur Eubanks <aeubanks@google.com> | 2020-12-08 10:29:05 -0800 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2020-12-08 15:13:34 -0800 |
commit | f0e89e69d6d7f4a097f4e1b1b9e38fe6cc384b7e (patch) | |
tree | 46f722946340fbeb2f07781a1df88854d9dad6c0 /llvm/tools/gold | |
parent | fa602d74f608f817a1e39af3163e5878b832e9df (diff) | |
download | llvm-f0e89e69d6d7f4a097f4e1b1b9e38fe6cc384b7e.zip llvm-f0e89e69d6d7f4a097f4e1b1b9e38fe6cc384b7e.tar.gz llvm-f0e89e69d6d7f4a097f4e1b1b9e38fe6cc384b7e.tar.bz2 |
[gold][NPM] Use NPM with ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D92869
Diffstat (limited to 'llvm/tools/gold')
-rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 0ac8922..adb77ca 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -16,6 +16,7 @@ #include "llvm/Bitcode/BitcodeWriter.h" #include "llvm/CodeGen/CommandFlags.h" #include "llvm/Config/config.h" // plugin-api.h requires HAVE_STDINT_H +#include "llvm/Config/llvm-config.h" #include "llvm/IR/Constants.h" #include "llvm/IR/DiagnosticPrinter.h" #include "llvm/LTO/Caching.h" @@ -200,7 +201,7 @@ namespace options { // Sample profile file path static std::string sample_profile; // New pass manager - static bool new_pass_manager = false; + static bool new_pass_manager = LLVM_ENABLE_NEW_PASS_MANAGER; // Debug new pass manager static bool debug_pass_manager = false; // Directory to store the .dwo files. |