[NFC][Doc] Fix typo in new pass manager snippet (#87765)
Add missing closing parenthesis and re-flow the snippet to what clang format would generate.
This commit is contained in:
parent
68b939f931
commit
b7593b2e92
@ -162,10 +162,10 @@ certain parts of the pipeline. For example,
|
||||
.. code-block:: c++
|
||||
|
||||
PassBuilder PB;
|
||||
PB.registerPipelineStartEPCallback([&](ModulePassManager &MPM,
|
||||
PassBuilder::OptimizationLevel Level) {
|
||||
MPM.addPass(FooPass());
|
||||
};
|
||||
PB.registerPipelineStartEPCallback(
|
||||
[&](ModulePassManager &MPM, PassBuilder::OptimizationLevel Level) {
|
||||
MPM.addPass(FooPass());
|
||||
});
|
||||
|
||||
will add ``FooPass`` near the very beginning of the pipeline for pass
|
||||
managers created by that ``PassBuilder``. See the documentation for
|
||||
|
Loading…
x
Reference in New Issue
Block a user