[JITLink] Include LinkGraph name in debugging output.
authorLang Hames <lhames@gmail.com>
Sat, 9 Jul 2022 01:36:29 +0000 (18:36 -0700)
committerLang Hames <lhames@gmail.com>
Sat, 9 Jul 2022 15:09:23 +0000 (08:09 -0700)
Makes it easier to identify the graph being fixed up at a glance.

llvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp

index b1492cd..389fd14 100644 (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);