diff options
author | Adrian Prantl <aprantl@apple.com> | 2014-12-19 00:01:20 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2014-12-19 00:01:20 +0000 |
commit | cf44e7870b41b0a9c7aeaa33df226d5204b790db (patch) | |
tree | 70e2ac337a3316d5a5998c43dc671b5eb2cba9d8 /llvm/lib | |
parent | f94eed608393f54389145b42a2f32c53f3b84274 (diff) | |
download | bcm5719-llvm-cf44e7870b41b0a9c7aeaa33df226d5204b790db.tar.gz bcm5719-llvm-cf44e7870b41b0a9c7aeaa33df226d5204b790db.zip |
Explain why LLVM is emitting a DW_AT_containing_type inside of a class.
llvm-svn: 224555
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index b616e54df5c..7606a61ff71 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -1118,6 +1118,8 @@ void DwarfUnit::constructTypeDIE(DIE &Buffer, DICompositeType CTy) { if (CTy.isAppleBlockExtension()) addFlag(Buffer, dwarf::DW_AT_APPLE_block); + // This is outside the DWARF spec, but GDB expects a DW_AT_containing_type + // inside C++ composite types to point to the base class with the vtable. DICompositeType ContainingType(resolve(CTy.getContainingType())); if (ContainingType) addDIEEntry(Buffer, dwarf::DW_AT_containing_type, |