forked from OSchip/llvm-project
[DWARF] Do not use PRIx32 for printing uint64_t values
The `DWARFDebugAddrTable::dump` routine prints 32/64-bits addresses. These values are stored in a vector of `uint64_t` independently of their original sizes. But `format` function gets format string with PRIx32 suffix in case of 32-bit address size. At least on MIPS 32-bit targets that leads to incorrect output. This patch changes formats strings and always use PRIx64 to print `uint64_t` values. Differential Revision: http://reviews.llvm.org/D54424 llvm-svn: 346715
This commit is contained in:
parent
a85ba92cb0
commit
22dc538618
|
@ -148,7 +148,7 @@ void DWARFDebugAddrTable::dump(raw_ostream &OS, DIDumpOptions DumpOpts) const {
|
|||
HeaderData.Length, HeaderData.Version, HeaderData.AddrSize,
|
||||
HeaderData.SegSize);
|
||||
|
||||
static const char *Fmt32 = "0x%8.8" PRIx32;
|
||||
static const char *Fmt32 = "0x%8.8" PRIx64;
|
||||
static const char *Fmt64 = "0x%16.16" PRIx64;
|
||||
std::string AddrFmt = "\n";
|
||||
std::string AddrFmtVerbose = " => ";
|
||||
|
|
Loading…
Reference in New Issue