[LLVMbugs] [Bug 21902] New: DW_AT_containing_type on a DW_TAG_class_type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Dec 12 14:50:32 PST 2014


            Bug ID: 21902
           Summary: DW_AT_containing_type on a DW_TAG_class_type
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: paul_robinson at playstation.sony.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

DW_AT_containing_type is specified only for DW_TAG_ptr_to_member_type,
but it can appear on DW_TAG_class_type.  More curiously, the attribute is a
self-reference to the class type DIE.

Older Clangs (through 3.3) did this for Linux, but 3.5 and trunk only do it
for FreeBSD, not Linux.  Possibly an ABI dependent thing?  But the attribute
doesn't belong there, regardless.  (Curiously, my 3.4 doesn't produce it for
either Linux or FreeBSD.)

$ cat test.cpp
class X {
  virtual ~X();
} x;

$ clang -c -g -target x86_64-unknown-freebsd9 test.cpp
$ llvm-dwarfdump -debug-dump=info test.o
0x00000040:   DW_TAG_class_type [3] *
                DW_AT_containing_type [DW_FORM_ref4]    (cu + 0x0040 =>

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141212/080b9aea/attachment.html>

More information about the llvm-bugs mailing list