]> granicus.if.org Git - llvm/commitdiff
Merging r310250:
authorHans Wennborg <hans@hanshq.net>
Tue, 8 Aug 2017 18:40:46 +0000 (18:40 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 8 Aug 2017 18:40:46 +0000 (18:40 +0000)
------------------------------------------------------------------------
r310250 | sdardis | 2017-08-07 05:29:38 -0700 (Mon, 07 Aug 2017) | 2 lines

[llvm-objdump] Use PRIx64 for output of ARM64_RELOC_ADDEND

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_50@310396 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-objdump/llvm-objdump.cpp

index d54b45515f05f31a2198752954c1900ad854656a..74593e6202aaa784a57e41afc81f2af53f464668 100644 (file)
@@ -871,7 +871,7 @@ static void printRelocationTargetName(const MachOObjectFile *O,
   uint64_t Val = O->getPlainRelocationSymbolNum(RE);
 
   if (O->getAnyRelocationType(RE) == MachO::ARM64_RELOC_ADDEND) {
-    fmt << format("0x%x", Val);
+    fmt << format("0x%0" PRIx64, Val);
     return;
   } else if (isExtern) {
     symbol_iterator SI = O->symbol_begin();