summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2018-11-16 13:14:26 +0000
committerSimon Atanasyan <simon@atanasyan.com>2018-11-16 13:14:26 +0000
commit705fbd5d4ff5abd39c5fb50c4a55988d78e94b68 (patch)
treed55503508f45a84de81dd09bc90756890c77c95a
parent90c5b3f78ecfc08a428ea6022a5e80ddc437b99b (diff)
downloadbcm5719-llvm-705fbd5d4ff5abd39c5fb50c4a55988d78e94b68.tar.gz
bcm5719-llvm-705fbd5d4ff5abd39c5fb50c4a55988d78e94b68.zip
[DWARF] Use PRIx64 instead of 'x' to format 64-bit values
This is a follow-up to r346715. Use PRIx64 to formatted print of 64-bit value in the `DWARFDebugLoclists::LocationList::dump` to escape problem on big-endian hosts. llvm-svn: 347049
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
index 9146b457a5d..6bf711cfdfe 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
@@ -235,14 +235,14 @@ void DWARFDebugLoclists::LocationList::dump(raw_ostream &OS, uint64_t BaseAddr,
case dwarf::DW_LLE_start_length:
OS << '\n';
OS.indent(Indent);
- OS << format("[0x%*.*" PRIx64 ", 0x%*.*x): ", AddressSize * 2,
+ OS << format("[0x%*.*" PRIx64 ", 0x%*.*" PRIx64 "): ", AddressSize * 2,
AddressSize * 2, E.Value0, AddressSize * 2, AddressSize * 2,
E.Value0 + E.Value1);
break;
case dwarf::DW_LLE_offset_pair:
OS << '\n';
OS.indent(Indent);
- OS << format("[0x%*.*" PRIx64 ", 0x%*.*x): ", AddressSize * 2,
+ OS << format("[0x%*.*" PRIx64 ", 0x%*.*" PRIx64 "): ", AddressSize * 2,
AddressSize * 2, BaseAddr + E.Value0, AddressSize * 2,
AddressSize * 2, BaseAddr + E.Value1);
break;
OpenPOWER on IntegriCloud