mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
Endian patch from Kirk Beitz that allows better cross platform building.
llvm-svn: 124643
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "lldb/Core/Log.h"
|
||||
#include "lldb/Core/State.h"
|
||||
#include "lldb/Core/Stream.h"
|
||||
#include "lldb/Host/Endian.h"
|
||||
#include "lldb/Target/Process.h"
|
||||
#include <algorithm>
|
||||
|
||||
@@ -129,7 +130,7 @@ EventDataBytes::Dump (Stream *s) const
|
||||
else if (m_bytes.size() > 0)
|
||||
{
|
||||
DataExtractor data;
|
||||
data.SetData(&m_bytes[0], m_bytes.size(), eByteOrderHost);
|
||||
data.SetData(&m_bytes[0], m_bytes.size(), lldb::endian::InlHostByteOrder());
|
||||
data.Dump(s, 0, eFormatBytes, 1, m_bytes.size(), 32, LLDB_INVALID_ADDRESS, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user