Debug Info: Support DW_TAG_imported_declaration
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 8 May 2013 06:01:41 +0000 (06:01 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 8 May 2013 06:01:41 +0000 (06:01 +0000)
commitaa76a93cd35abd922b66825bb4e3e0b6e14ccfd5
tree4f527fa2c3ab20f4d290094c26f36476d5cabec3
parentd1221e377d8e37e41539ed9f36b60b4cd48b6988
Debug Info: Support DW_TAG_imported_declaration

This provides basic functionality for imported declarations. For
subprograms and types some amount of lazy construction is supported (so
the definition of a function can proceed the using declaration), but it
still doesn't handle declared-but-not-defined functions (since we don't
generally emit function declarations).

Variable support is really rudimentary at the moment - simply looking up
the existing definition with no support for out of order (declaration,
imported_module, then definition).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181392 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
test/DebugInfo/namespace.ll