[llvm-commits] [patch] More DW_AT_specification forward references fixes
Rafael EspĂndola
rafael.espindola at gmail.com
Fri Nov 4 15:52:41 PDT 2011
This is a more general fix for pr11300. The test included in the patch
shows another path that can cause a subprogram die to be created
before its declaration. In this case, the definition is found when we
emit a DIE for a static local variable.
The patch fixes the problem by moving the check for a declaration to
CompileUnit::getOrCreateSubprogramDIE, which makes sure we cannot be
adding a definition before a declaration.
I am currently rebuilding firefox to see if this fixes all remaining
DW_AT_specification that point forward in the file. Is the patch OK if
it does?
Thanks,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 5371 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111104/1b2a0589/attachment.obj>
More information about the llvm-commits
mailing list