[llvm] r310262 - [DebugInfo][DWARF] Correct some usages of PRIx32 to PRIx64

Simon Dardis via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 7 12:43:41 PDT 2017


> From: David Blaikie [dblaikie at gmail.com]
> Sent: 07 August 2017 19:57
> To: Simon Dardis; llvm-commits at lists.llvm.org
> Subject: Re: [llvm] r310262 - [DebugInfo][DWARF] Correct some usages of PRIx32 to PRIx64

Sorry, I misread the buildbot's current set of changes, build 4915 should show that it passes.

> Was it only failing on MIPS?

As far as I could see it was only failing on MIPS, it has been on my to-fix list for some time as I
believed it was a libc bug which required upgrading the machines. If it had been failing on other
machines, I believe clayborg or someone else would have spotted it and reverted it.

> Is it possible to test it more portably?

Honestly, I'm not sure. The failing unittests synthesize an object section with dwarf debug info
then verify it and match the textual output of the verifier against known correct textual output. I
believe the existing tests are sufficient.

Providing input to llc with debug info and getting llvm-dwarfdump to verify the input seems to
be exactly the equivalent what the unit test is doing.

The only other thing I can think of is dropping the use of format(..) completely and using formatv(..)
which claims to support type-safe / compile time checked formatting.

If you have any suggestions, I'm quite open to them.

Thanks,
Simon

> On Mon, Aug 7, 2017 at 11:51 AM Simon Dardis <Simon.Dardis at imgtec.com> wrote:

>> From: David Blaikie [dblaikie at gmail.com]
>> Sent: 07 August 2017 19:34
>> To: Simon Dardis; llvm-commits at lists.llvm.org
>>  Subject: Re: [llvm] r310262 - [DebugInfo][DWARF] Correct some usages of PRIx32 to PRIx64
> > Test case?

> This is already covered by:
> LLVM-Unit::DWARFDebugInfo.TestDwarfVerifyInvalidCURef
> LLVM-Unit::DWARFDebugInfo.TestDwarfVerifyInvalidStmtList

> Which have been failing for some time on clang-cmake-mips(el):

> http://lab.llvm.org:8011/builders/clang-cmake-mips/builds/4913

> build 4914 when it's finished, should show those tests passing.

> Thanks,

> SImon












More information about the llvm-commits mailing list