forked from OSchip/llvm-project
[DebugInfo][DWARF] Use PRIx64 explicitly in output.
llvm-svn: 310253
This commit is contained in:
parent
680ac10aa7
commit
ec4ea99766
|
@ -136,13 +136,13 @@ dumpDWARFv5StringOffsetsSection(raw_ostream &OS, StringRef SectionName,
|
|||
uint64_t StringOffset =
|
||||
StrOffsetExt.getRelocatedValue(EntrySize, &Offset);
|
||||
if (Format == DWARF32) {
|
||||
OS << format("%8.8x ", StringOffset);
|
||||
OS << format("%8.8" PRIx64 " ", StringOffset);
|
||||
uint32_t StringOffset32 = (uint32_t)StringOffset;
|
||||
const char *S = StrData.getCStr(&StringOffset32);
|
||||
if (S)
|
||||
OS << format("\"%s\"", S);
|
||||
} else
|
||||
OS << format("%16.16x ", StringOffset);
|
||||
OS << format("%16.16" PRIx64 " ", StringOffset);
|
||||
OS << "\n";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue