diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake --- a/llvm/cmake/modules/HandleLLVMOptions.cmake +++ b/llvm/cmake/modules/HandleLLVMOptions.cmake @@ -974,16 +974,6 @@ message(FATAL_ERROR "Exception handling requires RTTI. You must set LLVM_ENABLE_RTTI to ON") endif() -option(LLVM_USE_NEWPM "Build LLVM using the experimental new pass manager" Off) -mark_as_advanced(LLVM_USE_NEWPM) -if (LLVM_USE_NEWPM) - append("-fexperimental-new-pass-manager" - CMAKE_CXX_FLAGS - CMAKE_C_FLAGS - CMAKE_EXE_LINKER_FLAGS - CMAKE_SHARED_LINKER_FLAGS) -endif() - option(LLVM_ENABLE_IR_PGO "Build LLVM and tools with IR PGO instrumentation (deprecated)" Off) mark_as_advanced(LLVM_ENABLE_IR_PGO) diff --git a/llvm/docs/CMake.rst b/llvm/docs/CMake.rst --- a/llvm/docs/CMake.rst +++ b/llvm/docs/CMake.rst @@ -738,9 +738,6 @@ search. For example to link LLVM with the Gold linker, cmake can be invoked with ``-DLLVM_USE_LINKER=gold``. -**LLVM_USE_NEWPM**:BOOL - If enabled, use the experimental new pass manager. - **LLVM_USE_OPROFILE**:BOOL Enable building OProfile JIT support. Defaults to OFF.