mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Stop casting away const qualifier needlessly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163258 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -150,7 +150,7 @@ DWARFFormValue::extractValue(DataExtractor data, uint32_t *offset_ptr,
|
||||
// Set the string value to also be the data for inlined cstr form
|
||||
// values only so we can tell the differnence between DW_FORM_string
|
||||
// and DW_FORM_strp form values
|
||||
Value.data = (uint8_t*)Value.cstr;
|
||||
Value.data = (const uint8_t*)Value.cstr;
|
||||
break;
|
||||
case DW_FORM_indirect:
|
||||
Form = data.getULEB128(offset_ptr);
|
||||
|
@@ -52,7 +52,7 @@ public:
|
||||
bool extractValue(DataExtractor data, uint32_t *offset_ptr,
|
||||
const DWARFCompileUnit *cu);
|
||||
bool isInlinedCStr() const {
|
||||
return Value.data != NULL && Value.data == (uint8_t*)Value.cstr;
|
||||
return Value.data != NULL && Value.data == (const uint8_t*)Value.cstr;
|
||||
}
|
||||
const uint8_t *BlockData() const;
|
||||
uint64_t getReference(const DWARFCompileUnit* cu) const;
|
||||
|
Reference in New Issue
Block a user