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)
commit1288a3b8e63b7704f7b70ec64fdc3e31d7f09b91
tree06bd58a2309da600eadeeef819659aa85ebd1b99
parent3b39845adfcfff861198db9f8ef0267bcee44f0a
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209554 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
test/DebugInfo/AArch64/variable-loc.ll
test/DebugInfo/SystemZ/variable-loc.ll
test/DebugInfo/X86/DW_AT_linkage_name.ll
test/DebugInfo/X86/arguments.ll
test/DebugInfo/X86/dbg-value-inlined-parameter.ll
test/DebugInfo/X86/debug-loc-offset.ll
test/DebugInfo/X86/gnu-public-names.ll
test/DebugInfo/X86/inline-seldag-test.ll
test/DebugInfo/X86/pr11300.ll
test/DebugInfo/namespace.ll
test/Linker/type-unique-odr-a.ll
test/MC/ARM/coff-debugging-secrel.ll