Refactor constructImportedEntityDIE(DwarfUnit, DIImportedEntity) to return a DIE...
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 31 Aug 2014 05:32:06 +0000 (05:32 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 31 Aug 2014 05:32:06 +0000 (05:32 +0000)
commitba466e6909e7d05a12c400f08f902d9ea08eec6c
treea24965cab51f2988c09e3b3761088a7bd97ac734
parentb8ee7c2bf6e3ab819fb3bd4f066172e7a45cc8d1
Refactor constructImportedEntityDIE(DwarfUnit, DIImportedEntity) to return a DIE rather than inserting it into a specified context.

First of many steps to improve lexical scope construction (to omit
trivial lexical scopes - those without any direct variables). To that
end it's easier not to create imported entities directly into the
lexical scope node, but to build them, then add them if necessary.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216838 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h