mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-19 19:53:38 -04:00
llvm-16: Don't initialize removed legacy passes
LLVM removed initialization for legacy passes: https://reviews.llvm.org/D136615
This commit is contained in:
@@ -69,7 +69,9 @@ extern "C" void LLVMInitializePasses() {
|
||||
initializeAnalysis(Registry);
|
||||
initializeTransformUtils(Registry);
|
||||
initializeInstCombine(Registry);
|
||||
#if LLVM_VERSION_LT(16, 0)
|
||||
initializeInstrumentation(Registry);
|
||||
#endif
|
||||
initializeTarget(Registry);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user