Endian patch from Kirk Beitz that allows better cross platform building.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@124643 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index 54382ff..e9b0117 100644
--- a/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ b/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -18,6 +18,7 @@
 #include "lldb/Core/Log.h"
 #include "lldb/Core/State.h"
 #include "lldb/Core/StreamString.h"
+#include "lldb/Host/Host.h"
 #include "lldb/Host/TimeValue.h"
 
 // Project includes
@@ -48,7 +49,7 @@
     m_arch(),
     m_os(),
     m_vendor(),
-    m_byte_order(eByteOrderHost),
+    m_byte_order(lldb::endian::InlHostByteOrder()),
     m_pointer_byte_size(0)
 {
     m_rx_packet_listener.StartListeningForEvents(this,
@@ -773,7 +774,7 @@
             if (i > 0)
                 packet.PutChar(',');
             packet.Printf("%i,%i,", arg_len * 2, i);
-            packet.PutBytesAsRawHex8(arg, arg_len, eByteOrderHost, eByteOrderHost);
+            packet.PutBytesAsRawHex8(arg, arg_len, lldb::endian::InlHostByteOrder(), lldb::endian::InlHostByteOrder());
         }
 
         StringExtractorGDBRemote response;
@@ -815,7 +816,7 @@
     m_arch.Clear();
     m_os.Clear();
     m_vendor.Clear();
-    m_byte_order = eByteOrderHost;
+    m_byte_order = lldb::endian::InlHostByteOrder();
     m_pointer_byte_size = 0;
 
     StringExtractorGDBRemote response;