Fix gcc warnings about casting away constness
llvm-svn: 199506
This commit is contained in:
parent
aa71cd8d26
commit
7489cc98f7
|
|
@ -382,9 +382,9 @@ public:
|
|||
lldb::offset_t offset = m_header.Read (data, 0);
|
||||
if (offset != LLDB_INVALID_OFFSET && IsValid ())
|
||||
{
|
||||
m_hash_indexes = (uint32_t *)data.GetData (&offset, m_header.bucket_count * sizeof(uint32_t));
|
||||
m_hash_values = (uint32_t *)data.GetData (&offset, m_header.hashes_count * sizeof(uint32_t));
|
||||
m_hash_offsets = (uint32_t *)data.GetData (&offset, m_header.hashes_count * sizeof(uint32_t));
|
||||
m_hash_indexes = (const uint32_t *)data.GetData (&offset, m_header.bucket_count * sizeof(uint32_t));
|
||||
m_hash_values = (const uint32_t *)data.GetData (&offset, m_header.hashes_count * sizeof(uint32_t));
|
||||
m_hash_offsets = (const uint32_t *)data.GetData (&offset, m_header.hashes_count * sizeof(uint32_t));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -542,9 +542,9 @@ public:
|
|||
protected:
|
||||
// Implementation agnostic information
|
||||
HeaderType m_header;
|
||||
uint32_t *m_hash_indexes;
|
||||
uint32_t *m_hash_values;
|
||||
uint32_t *m_hash_offsets;
|
||||
const uint32_t *m_hash_indexes;
|
||||
const uint32_t *m_hash_values;
|
||||
const uint32_t *m_hash_offsets;
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ public:
|
|||
bool ExtractValue(const lldb_private::DWARFDataExtractor& data,
|
||||
lldb::offset_t* offset_ptr,
|
||||
const DWARFCompileUnit* cu);
|
||||
bool IsInlinedCStr() const { return (m_value.data != NULL) && m_value.data == (uint8_t*)m_value.value.cstr; }
|
||||
bool IsInlinedCStr() const { return (m_value.data != NULL) && m_value.data == (const uint8_t*)m_value.value.cstr; }
|
||||
const uint8_t* BlockData() const;
|
||||
uint64_t Reference(const DWARFCompileUnit* cu) const;
|
||||
uint64_t Reference (dw_offset_t offset) const;
|
||||
|
|
|
|||
Loading…
Reference in New Issue