[JITLink] Include LinkGraph name in debugging output.

Makes it easier to identify the graph being fixed up at a glance.
This commit is contained in:
Lang Hames 2022-07-08 18:36:29 -07:00
parent ef0fa9f0ef
commit 51c705fbe5
1 changed files with 3 additions and 2 deletions

View File

@ -33,7 +33,7 @@ Error EHFrameEdgeFixer::operator()(LinkGraph &G) {
if (!EHFrame) {
LLVM_DEBUG({
dbgs() << "EHFrameEdgeFixer: No " << EHFrameSectionName
<< " section. Nothing to do\n";
<< " section in \"" << G.getName() << "\". Nothing to do.\n";
});
return Error::success();
}
@ -44,7 +44,8 @@ Error EHFrameEdgeFixer::operator()(LinkGraph &G) {
"EHFrameEdgeFixer only supports 32 and 64 bit targets");
LLVM_DEBUG({
dbgs() << "EHFrameEdgeFixer: Processing " << EHFrameSectionName << "...\n";
dbgs() << "EHFrameEdgeFixer: Processing " << EHFrameSectionName << " in \""
<< G.getName() << "\"...\n";
});
ParseContext PC(G);