Improve test for merged global debug info by using llvm-dwarfdump.
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 5 Aug 2014 16:20:25 +0000 (16:20 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 5 Aug 2014 16:20:25 +0000 (16:20 +0000)
commiteffcb72a40d828a3723dd992438acc6afe430111
tree345ad51c2016825548d2206d376831e1d2c58c3b
parent2888b08b44e14ea783a38c338755baab8fcc3c43
Improve test for merged global debug info by using llvm-dwarfdump.

It's a bit of a tradeoff, since llvm-dwarfdump doesn't print the name of
the global symbol being used as an address in the addressing mode, but
this avoids the dependence on hardcoded set labels that keep changing
(5+ commits over the last few years that each update the set label as it
changes due to other, unrelated differences in output). This could've,
instead, been changed to match the set name then match the name in the
string pool but that would present other issues (needing to skip over
the sets that weren't of interest, etc) and checking that the addresses
(granted, without relocations applied - so it's not the whole story)
match in the two variable location descriptions seems sufficient and
fairly stable here.

There are a few similar other tests with similar label dependence that
I'll update soonish.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214878 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll