OSDN Git Service

Debug Info: Add basic support for external types references.
authorAdrian Prantl <aprantl@apple.com>
Wed, 15 Jul 2015 17:01:41 +0000 (17:01 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 15 Jul 2015 17:01:41 +0000 (17:01 +0000)
commitbd584159e1aec355b3a678a280a0ae4ee755d188
tree31fe42645898fc8214c87491897182ef54084ee0
parent745b733071817b577f416be0e55e422f69dd9011
Debug Info: Add basic support for external types references.
This is a necessary prerequisite for bootstrapping the emission
of debug info inside modules.

- Adds a FlagExternalTypeRef to DICompositeType.
  External types must have a unique identifier.
- External type references are emitted using a forward declaration
  with a DW_AT_signature([DW_FORM_ref_sig8]) based on the UID.

http://reviews.llvm.org/D9612

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242302 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DIBuilder.h
include/llvm/IR/DebugInfoFlags.def
include/llvm/IR/DebugInfoMetadata.h
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.h
lib/IR/DIBuilder.cpp
test/DebugInfo/X86/externaltyperef.ll [new file with mode: 0644]