OSDN Git Service

android: [NewPM] Move ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER into llvm/
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 30 Jan 2021 13:57:50 +0000 (14:57 +0100)
committerMauro Rossi <issor.oruam@gmail.com>
Thu, 15 Apr 2021 11:05:16 +0000 (13:05 +0200)
Porting of commit
a36bd4c90dcc ("[CMake][NewPM] Move ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER into llvm/")

Fixes the following building error:

In file included from external/llvm-project/llvm/lib/LTO/LTOBackend.cpp:16:
In file included from external/llvm-project/llvm/include/llvm/LTO/LTOBackend.h:22:
In file included from external/llvm-project/llvm/include/llvm/LTO/LTO.h:22:
external/llvm-project/llvm/include/llvm/LTO/Config.h:57:19: error: use of undeclared identifier 'LLVM_ENABLE_NEW_PASS_MANAGER'
  bool UseNewPM = LLVM_ENABLE_NEW_PASS_MANAGER;
                  ^
1 error generated.

llvm/include/llvm/Config/llvm-platform-config.h

index 6924e70..8e80d69 100644 (file)
 /* Define to 1 if you have the <sysexits.h> header file. */
 #define HAVE_SYSEXITS_H 1
 
+/* Define to 1 to enable the experimental new pass manager by default */
+#define LLVM_ENABLE_NEW_PASS_MANAGER 0
+
 /* Define if this is Win32ish platform */
 /* #undef LLVM_ON_WIN32 */