diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-02-01 01:31:41 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-02-01 01:31:41 +0000 |
| commit | 7fb56d0a1afeaf061e01ac6c6d3bd147f5a0c09d (patch) | |
| tree | ed8a1dddc335d4e969a0dc84f93e35b32ef877af /lldb/source/Core/ValueObject.cpp | |
| parent | a1c833769e9dbcd33418265e597eef300d6aa678 (diff) | |
| download | bcm5719-llvm-7fb56d0a1afeaf061e01ac6c6d3bd147f5a0c09d.tar.gz bcm5719-llvm-7fb56d0a1afeaf061e01ac6c6d3bd147f5a0c09d.zip | |
Endian patch from Kirk Beitz that allows better cross platform building.
llvm-svn: 124643
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
| -rw-r--r-- | lldb/source/Core/ValueObject.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index 89fc8b31786..95669255bd5 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -24,6 +24,8 @@ #include "lldb/Core/ValueObjectConstResult.h" #include "lldb/Core/ValueObjectList.h" +#include "lldb/Host/Endian.h" + #include "lldb/Symbol/ClangASTType.h" #include "lldb/Symbol/ClangASTContext.h" #include "lldb/Symbol/Type.h" @@ -460,7 +462,7 @@ ValueObject::GetSummaryAsCString (ExecutionContextScope *exe_scope) if (cstr_len > 0) { data_buffer.resize(cstr_len); - data.SetData (&data_buffer.front(), data_buffer.size(), eByteOrderHost); + data.SetData (&data_buffer.front(), data_buffer.size(), lldb::endian::InlHostByteOrder()); bytes_read = process->ReadMemory (cstr_address, &data_buffer.front(), cstr_len, error); if (bytes_read > 0) { @@ -486,7 +488,7 @@ ValueObject::GetSummaryAsCString (ExecutionContextScope *exe_scope) sstr << '"'; - data.SetData (&data_buffer.front(), data_buffer.size(), eByteOrderHost); + data.SetData (&data_buffer.front(), data_buffer.size(), endian::InlHostByteOrder()); while ((bytes_read = process->ReadMemory (cstr_address, &data_buffer.front(), k_max_buf_size, error)) > 0) { size_t len = strlen(&data_buffer.front()); @@ -796,7 +798,7 @@ ValueObject::SetValueFromCString (ExecutionContextScope *exe_scope, const char * { // We are decoding a float into host byte order below, so make // sure m_data knows what it contains. - m_data.SetByteOrder(eByteOrderHost); + m_data.SetByteOrder(lldb::endian::InlHostByteOrder()); const size_t converted_byte_size = ClangASTContext::ConvertStringToFloatValue ( GetClangAST(), GetClangType(), |

