[ORC] Fix some comments in the LLJITWithObjectLinkingLayerPlugin example.

This commit is contained in:
Lang Hames 2021-03-12 19:13:42 -08:00
parent 4e30b20bdb
commit 70c921267e
1 changed files with 7 additions and 12 deletions

View File

@ -60,19 +60,14 @@ public:
<< LG.getTargetTriple().str() << "):\n"; << LG.getTargetTriple().str() << "):\n";
// Print sections, symbol names and addresses, and any edges for the // Print sections, symbol names and addresses, and any edges for the
// associated blocks. // associated blocks at the 'PostPrune' phase of JITLink (after
Config.PostPrunePasses.push_back(printGraph); // dead-stripping, but before addresses are allocated in the target
// address space. See llvm/docs/JITLink.rst).
// Print graph contents before and after fixups:
// //
// Config.PostPrunePasses.push_back([this](jitlink::LinkGraph &G) -> Error { // Experiment with adding the 'printGraph' pass at other points in the
// printLinkGraphContent(G, "Before fixup:"); // pipeline. E.g. PrePrunePasses, PostAllocationPasses, and
// return Error::success(); // PostFixupPasses.
// }); Config.PostPrunePasses.push_back(printGraph);
// Config.PostFixupPasses.push_back([this](jitlink::LinkGraph &G) -> Error {
// printLinkGraphContent(G, "After fixup:");
// return Error::success();
// });
} }
void notifyLoaded(MaterializationResponsibility &MR) override { void notifyLoaded(MaterializationResponsibility &MR) override {