DebugInfo: Generalize some tests to handle variations in attribute ordering.
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 23 May 2014 21:11:46 +0000 (21:11 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 23 May 2014 21:11:46 +0000 (21:11 +0000)
commit2f75351c02a32592f5c0f2af3a2ab10cf12cdb07
treeb5fc91e71c12d36f902aa08d3463742612fe5dff
parent71ed20f67198c06039b6f9419318ecfbf83eb51d
DebugInfo: Generalize some tests to handle variations in attribute ordering.

In an effort to fix inlined debug info in situations where the out of
line definition of a function preceeds any inlined usage, the order in
which some attributes are added to subprogram DIEs may change. (in
essence, definition-necessary attributes like DW_AT_low_pc/high_pc will
be added immediately, but the names, types, and other features will be
delayed to module end where they may either be added to the subprogram
DIE or instead reference an abstract definition for those values)

These tests can be generalized to be resilient to this change. 5 or so
tests actually have to be incompatibly changed to cope with this
reordering and will go along with the change that affects the order.

llvm-svn: 209554
12 files changed:
llvm/test/DebugInfo/AArch64/variable-loc.ll
llvm/test/DebugInfo/SystemZ/variable-loc.ll
llvm/test/DebugInfo/X86/DW_AT_linkage_name.ll
llvm/test/DebugInfo/X86/arguments.ll
llvm/test/DebugInfo/X86/dbg-value-inlined-parameter.ll
llvm/test/DebugInfo/X86/debug-loc-offset.ll
llvm/test/DebugInfo/X86/gnu-public-names.ll
llvm/test/DebugInfo/X86/inline-seldag-test.ll
llvm/test/DebugInfo/X86/pr11300.ll
llvm/test/DebugInfo/namespace.ll
llvm/test/Linker/type-unique-odr-a.ll
llvm/test/MC/ARM/coff-debugging-secrel.ll