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)
commitc74ffa9cab4681845ad801828ffea262957486b8
tree4ffb98d6af69828c2aacbe29d2b232d329a2cf26
parent9245e6be86a25bdde39bd5c1aeb12d0e9ed4f6ec
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.

llvm-svn: 214878
llvm/test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll