Add more external types to the pubtypes table. Expand the asm

checking patch until we get full dumping support.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191239 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2013-09-23 23:15:58 +00:00
parent 262f548b09
commit 5a63474e2d
2 changed files with 4 additions and 1 deletions

View File

@ -880,7 +880,7 @@ void CompileUnit::addGlobalName(StringRef Name, DIE *Die) {
///
void CompileUnit::addGlobalType(DIType Ty) {
DIDescriptor Context = DD->resolve(Ty.getContext());
if (Ty.isCompositeType() && !Ty.getName().empty() && !Ty.isForwardDecl() &&
if (!Ty.getName().empty() && !Ty.isForwardDecl() &&
(!Context || Context.isCompileUnit() || Context.isFile() ||
Context.isNameSpace()))
if (DIEEntry *Entry = getDIEEntry(Ty))

View File

@ -38,6 +38,9 @@
; ASM: .section .debug_gnu_pubtypes
; ASM: .byte 16 # Kind: TYPE, EXTERNAL
; ASM: .asciz "C" # External Name
; ASM: .byte 144 # Kind: TYPE, STATIC
; ASM: .asciz "int" # External Name
; CHECK: .debug_info contents:
; CHECK: 0x00000046: DW_TAG_subprogram