[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:
Jakub Chlanda 2024-04-05 19:05:19 +02:00 committed by GitHub
parent 68b939f931
commit b7593b2e92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -162,10 +162,10 @@ certain parts of the pipeline. For example,
.. code-block:: c++
PassBuilder PB;
PB.registerPipelineStartEPCallback([&](ModulePassManager &MPM,
PassBuilder::OptimizationLevel Level) {
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