[DebugInfo][DWARF] Address paulr's comment on rL310253.

llvm-svn: 310267
This commit is contained in:
Simon Dardis 2017-08-07 16:08:11 +00:00
parent 96bea51234
commit b1b52c0200
1 changed files with 1 additions and 1 deletions

View File

@ -136,8 +136,8 @@ dumpDWARFv5StringOffsetsSection(raw_ostream &OS, StringRef SectionName,
uint64_t StringOffset =
StrOffsetExt.getRelocatedValue(EntrySize, &Offset);
if (Format == DWARF32) {
OS << format("%8.8" PRIx64 " ", StringOffset);
uint32_t StringOffset32 = (uint32_t)StringOffset;
OS << format("%8.8x ", StringOffset32);
const char *S = StrData.getCStr(&StringOffset32);
if (S)
OS << format("\"%s\"", S);