[PATCH] D18724: Fixed Dwarf debug info emission to skip DILexicalBlockFile entries

Amjad Aboud via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 2 09:42:07 PDT 2016


aaboud created this revision.
aaboud added reviewers: dblaikie, aprantl, echristo.
aaboud added a subscriber: llvm-commits.

Without this change the imported entity defined under DILexicalBlockFile (in the test example) will be created under DW_TAG_lexical_block corresponded with DILexicalBlockFile.
This will not happen for a local variable.

Notice that I am fine with creating lexical block entry for each DILexicalBlockFile, but either we do so for all local decls or for none.

http://reviews.llvm.org/D18724

Files:
  lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
  lib/CodeGen/LexicalScopes.cpp
  test/DebugInfo/X86/lexical-block-file-inline.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18724.52464.patch
Type: text/x-patch
Size: 9323 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160402/f7d34745/attachment.bin>


More information about the llvm-commits mailing list