Match the full hex offsets in test/DebugInfo/X86/gnu-public-names.ll
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 6 Jun 2014 18:45:14 +0000 (18:45 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 6 Jun 2014 18:45:14 +0000 (18:45 +0000)
commit5beec3aa928fa9675784e7f2f0d255792323cd19
tree761bc33e191f47a57a4bf909b15153bceeada56c
parent8cfe2c00b0609af9a15acb6715847bf59c110e60
Match the full hex offsets in test/DebugInfo/X86/gnu-public-names.ll

These checks were accidentally skipping the 0x prefix in the hex
offsets, then cunningly ignoring the prefix in the use of those captured
values.

Except in the case of the unit length, where the match was only matching
the leading '0' before the x in the 0x prefix, then matching that
against the length. We can't actually express the length association
here, as the length field in the Compile Unit header does not include
the length field itself, but the length field in the pubnames section
/does/ include the size of the length field in the Compile Unit header -
so the two numbers are actually 4 bytes different. Just skip matching
that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210364 91177308-0d34-0410-b5e6-96231b3b80d8
test/DebugInfo/X86/gnu-public-names.ll