[Lldb-commits] [PATCH] D50025: Don't ignore byte_order in Stream::PutMaxHex64

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 30 15:56:19 PDT 2018


teemperor created this revision.

Note: We don't have a unittest for Stream yet, so the regression test for this will be added with the
upcoming Stream unit test.


https://reviews.llvm.org/D50025

Files:
  source/Utility/Stream.cpp


Index: source/Utility/Stream.cpp
===================================================================
--- source/Utility/Stream.cpp
+++ source/Utility/Stream.cpp
@@ -427,11 +427,11 @@
   case 1:
     return PutHex8((uint8_t)uvalue);
   case 2:
-    return PutHex16((uint16_t)uvalue);
+    return PutHex16((uint16_t)uvalue, byte_order);
   case 4:
-    return PutHex32((uint32_t)uvalue);
+    return PutHex32((uint32_t)uvalue, byte_order);
   case 8:
-    return PutHex64(uvalue);
+    return PutHex64(uvalue, byte_order);
   }
   return 0;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50025.158117.patch
Type: text/x-patch
Size: 542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180730/ae247f28/attachment-0001.bin>


More information about the lldb-commits mailing list