forked from OSchip/llvm-project
[ModuleInliner] clang-format ModuleInliner.cpp (NFC)
This commit is contained in:
parent
e456d2ba8b
commit
9111920af8
|
@ -91,8 +91,7 @@ InlineAdvisor &ModuleInlinerPass::getAdvisor(const ModuleAnalysisManager &MAM,
|
|||
// would get from the MAM can be invalidated as a result of the inliner's
|
||||
// activity.
|
||||
OwnedAdvisor = std::make_unique<DefaultInlineAdvisor>(
|
||||
M, FAM, Params,
|
||||
InlineContext{LTOPhase, InlinePass::ModuleInliner});
|
||||
M, FAM, Params, InlineContext{LTOPhase, InlinePass::ModuleInliner});
|
||||
|
||||
return *OwnedAdvisor;
|
||||
}
|
||||
|
@ -117,9 +116,8 @@ PreservedAnalyses ModuleInlinerPass::run(Module &M,
|
|||
LLVM_DEBUG(dbgs() << "---- Module Inliner is Running ---- \n");
|
||||
|
||||
auto &IAA = MAM.getResult<InlineAdvisorAnalysis>(M);
|
||||
if (!IAA.tryCreate(
|
||||
Params, Mode, {},
|
||||
InlineContext{LTOPhase, InlinePass::ModuleInliner})) {
|
||||
if (!IAA.tryCreate(Params, Mode, {},
|
||||
InlineContext{LTOPhase, InlinePass::ModuleInliner})) {
|
||||
M.getContext().emitError(
|
||||
"Could not setup Inlining Advisor for the requested "
|
||||
"mode and/or options");
|
||||
|
|
Loading…
Reference in New Issue