http://llvm.org/bugs/show_bug.cgi?id=21902

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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 {
public:
  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 =>
{0x00000040})

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to