mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-20 22:57:39 -04:00
Respect -Z verify-llvm-ir and other flags that add extra passes when combined with -C no-prepopulate-passes in the new LLVM Pass Manager.
This commit is contained in:
@@ -995,6 +995,13 @@ LLVMRustOptimizeWithNewPassManager(
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// We're not building any of the default pipelines but we still want to
|
||||
// add the verifier, instrumentation, etc passes if they were requested
|
||||
for (const auto &C : PipelineStartEPCallbacks)
|
||||
C(MPM, OptLevel);
|
||||
for (const auto &C : OptimizerLastEPCallbacks)
|
||||
C(MPM, OptLevel);
|
||||
}
|
||||
|
||||
if (ExtraPassesLen) {
|
||||
|
||||
Reference in New Issue
Block a user