From 5e95aa85bb660d45e9905ef1d7180b2678280660 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Fri, 3 Jul 2015 16:57:06 +0000 Subject: Import LLDB as of upstream SVN 241361 (git 612c075f) --- source/Core/DataEncoder.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source/Core/DataEncoder.cpp') diff --git a/source/Core/DataEncoder.cpp b/source/Core/DataEncoder.cpp index 92a9104acc3a..d21ca423892f 100644 --- a/source/Core/DataEncoder.cpp +++ b/source/Core/DataEncoder.cpp @@ -21,36 +21,36 @@ using namespace lldb; using namespace lldb_private; static inline void -WriteInt16(const unsigned char* ptr, unsigned offset, uint16_t value) +WriteInt16(unsigned char* ptr, unsigned offset, uint16_t value) { *(uint16_t *)(ptr + offset) = value; } static inline void -WriteInt32 (const unsigned char* ptr, unsigned offset, uint32_t value) +WriteInt32 (unsigned char* ptr, unsigned offset, uint32_t value) { *(uint32_t *)(ptr + offset) = value; } static inline void -WriteInt64(const unsigned char* ptr, unsigned offset, uint64_t value) +WriteInt64(unsigned char* ptr, unsigned offset, uint64_t value) { *(uint64_t *)(ptr + offset) = value; } static inline void -WriteSwappedInt16(const unsigned char* ptr, unsigned offset, uint16_t value) +WriteSwappedInt16(unsigned char* ptr, unsigned offset, uint16_t value) { *(uint16_t *)(ptr + offset) = llvm::ByteSwap_16(value); } static inline void -WriteSwappedInt32 (const unsigned char* ptr, unsigned offset, uint32_t value) +WriteSwappedInt32 (unsigned char* ptr, unsigned offset, uint32_t value) { *(uint32_t *)(ptr + offset) = llvm::ByteSwap_32(value); } static inline void -WriteSwappedInt64(const unsigned char* ptr, unsigned offset, uint64_t value) +WriteSwappedInt64(unsigned char* ptr, unsigned offset, uint64_t value) { *(uint64_t *)(ptr + offset) = llvm::ByteSwap_64(value); } @@ -153,7 +153,7 @@ DataEncoder::GetSharedDataOffset () const // any data extracted will be endian swapped. //---------------------------------------------------------------------- uint32_t -DataEncoder::SetData (const void *bytes, uint32_t length, ByteOrder endian) +DataEncoder::SetData (void *bytes, uint32_t length, ByteOrder endian) { m_byte_order = endian; m_data_sp.reset(); -- cgit v1.3