mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-02 22:30:36 +00:00
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:
parent
262f548b09
commit
5a63474e2d
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user