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