DebugInfo: Support namespace aliases as DW_TAG_imported_declaration instead of DW_TAG...
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 6 Apr 2014 06:29:01 +0000 (06:29 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 6 Apr 2014 06:29:01 +0000 (06:29 +0000)
commit1c41705d34fa0257eeea0e2141eb574fa3130ced
treec7ec7efc1de1e0f36c7407876e5d3a07861d7826
parent20384a5583ef97644120f819e3d403652d36825d
DebugInfo: Support namespace aliases as DW_TAG_imported_declaration instead of DW_TAG_imported_module

I really should read the spec more often (and test GCC more often too).
I just assumed that namespace aliases would be the same as using
directives, except with a name. But apparently that's not how the DWARF
standards suggests they be implemented. DWARF4 provides an example and
other non-normative text suggesting that namespace aliases be
implemented by named imported declarations intsead of named imported
modules.

So be it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205685 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DIBuilder.h
lib/IR/DIBuilder.cpp
test/DebugInfo/namespace.ll