mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
DebugInfo: Do not emit pubnames/pubtypes sections if they are empty
llvm-svn: 203622
This commit is contained in:
parent
7594745928
commit
4629ccd947
@ -2215,6 +2215,9 @@ void DwarfDebug::emitDebugPubSection(
|
||||
|
||||
const auto &Globals = (TheU->*Accessor)();
|
||||
|
||||
if (Globals.empty())
|
||||
continue;
|
||||
|
||||
if (auto Skeleton = static_cast<DwarfCompileUnit *>(TheU->getSkeleton()))
|
||||
TheU = Skeleton;
|
||||
unsigned ID = TheU->getUniqueID();
|
||||
|
@ -12,10 +12,10 @@
|
||||
; CHECK-NOT: file_names[
|
||||
|
||||
; CHECK: .debug_pubnames contents:
|
||||
; CHECK-NEXT: {{^$}}
|
||||
; CHECK-NOT: Offset
|
||||
|
||||
; CHECK: .debug_pubtypes contents:
|
||||
; CHECK-NEXT: {{^$}}
|
||||
; CHECK-NOT: Offset
|
||||
|
||||
!llvm.dbg.cu = !{!0}
|
||||
!llvm.module.flags = !{!5}
|
||||
|
Loading…
Reference in New Issue
Block a user