File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,15 @@ struct CompositeFixedPointPass final
38
38
dynamicPM.printAsTextualPipeline (os);
39
39
}
40
40
41
- LogicalResult initializeOptions (StringRef options) override {
42
- if (failed (CompositeFixedPointPassBase::initializeOptions (options)))
41
+ LogicalResult initializeOptions (
42
+ StringRef options,
43
+ function_ref<LogicalResult(const Twine &)> errorHandler) override {
44
+ if (failed (CompositeFixedPointPassBase::initializeOptions (options,
45
+ errorHandler)))
43
46
return failure ();
44
47
45
- if (failed (parsePassPipeline (pipelineStr, dynamicPM))) {
46
- llvm::errs () << " Failed to parse composite pass pipeline\n " ;
47
- return failure ();
48
- }
48
+ if (failed (parsePassPipeline (pipelineStr, dynamicPM)))
49
+ return errorHandler (" Failed to parse composite pass pipeline" );
49
50
50
51
return success ();
51
52
}
You can’t perform that action at this time.
0 commit comments