Remove extension of legacy pass manager
adjustPassManager was only used for a few backends, such as AMDGPU and NVPTX, but not on the CPU architectures we care about. The DiscriminatorsPass was also removed upstream Clang, see commit https://github.com/llvm/llvm-project/commit/2978d02681.
This commit is contained in:
parent
6960639412
commit
f62bbfff85
@ -421,14 +421,6 @@ void BackendPasses::CreatePasses(llvm::Module& M, int OptLevel)
|
||||
m_MPM[OptLevel]->add(createTargetTransformInfoWrapperPass(
|
||||
m_TM.getTargetIRAnalysis()));
|
||||
|
||||
m_TM.adjustPassManager(PMBuilder);
|
||||
|
||||
PMBuilder.addExtension(PassManagerBuilder::EP_EarlyAsPossible,
|
||||
[&](const PassManagerBuilder &,
|
||||
legacy::PassManagerBase &PM) {
|
||||
PM.add(createAddDiscriminatorsPass());
|
||||
});
|
||||
|
||||
//if (!CGOpts.RewriteMapFiles.empty())
|
||||
// addSymbolRewriterPass(CGOpts, m_MPM);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user