Reapply 51c705fbe5, "[JITLink] Include LinkGraph name in...", with fixes.

Original commit reverted in 976de7130b due to test
failures. This commit includes fixes for the tests.
This commit is contained in:
Lang Hames 2022-07-09 09:12:19 -07:00
parent b17754bcaa
commit 3a7986f573
3 changed files with 6 additions and 5 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);

View File

@ -11,7 +11,7 @@
# CHECK: Extracted {{.*}} section = .eh_frame
# CHECK: Processing CFI record at
# CHECK: Extracted {{.*}} section = .eh_frame
# CHECK: EHFrameEdgeFixer: Processing .eh_frame...
# CHECK: EHFrameEdgeFixer: Processing .eh_frame in "{{.*}}"...
# CHECK: Processing block at
# CHECK: Processing CFI record at
# CHECK: Record is CIE

View File

@ -11,7 +11,7 @@
# CHECK: Extracted {{.*}} section = __TEXT,__eh_frame
# CHECK: Processing CFI record at
# CHECK: Extracted {{.*}} section = __TEXT,__eh_frame
# CHECK: EHFrameEdgeFixer: Processing __TEXT,__eh_frame...
# CHECK: EHFrameEdgeFixer: Processing __TEXT,__eh_frame in "{{.*}}"...
# CHECK: Processing block at
# CHECK: Processing CFI record at
# CHECK: Record is CIE