[JITLink][ORC] Make the LinkGraph available to modifyPassConfig.

This makes the target triple, graph name, and full graph content available
when making decisions about how to populate the linker pass pipeline.

Also updates the LLJITWithObjectLinkingLayerPlugin example to show more
API use, including use of the API changes in this patch.
This commit is contained in:
Lang Hames
2021-03-12 17:02:01 -08:00
parent 4a11d40768
commit d7eedad739
13 changed files with 151 additions and 58 deletions
@@ -432,7 +432,7 @@ void DebugObjectManagerPlugin::notifyMaterializing(
}
void DebugObjectManagerPlugin::modifyPassConfig(
MaterializationResponsibility &MR, const Triple &TT,
MaterializationResponsibility &MR, LinkGraph &G,
PassConfiguration &PassConfig) {
// Not all link artifacts have associated debug objects.
std::lock_guard<std::mutex> Lock(PendingObjsLock);