diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2012-09-05 22:26:57 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2012-09-05 22:26:57 +0000 |
commit | ad06cee239ab6baaa8bdd8ce3b381faf1cc0e8f1 (patch) | |
tree | bdd8f9546bc9b5b2df114c513474027b0bb5c7d5 /llvm/lib/DebugInfo | |
parent | cbd2a1983f77fc655d7dd620e6287c82776c5698 (diff) | |
download | bcm5719-llvm-ad06cee239ab6baaa8bdd8ce3b381faf1cc0e8f1.tar.gz bcm5719-llvm-ad06cee239ab6baaa8bdd8ce3b381faf1cc0e8f1.zip |
Stop casting away const qualifier needlessly.
llvm-svn: 163258
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r-- | llvm/lib/DebugInfo/DWARFFormValue.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/DebugInfo/DWARFFormValue.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARFFormValue.cpp b/llvm/lib/DebugInfo/DWARFFormValue.cpp index fc23b38f2ef..c9ecbbbbd4b 100644 --- a/llvm/lib/DebugInfo/DWARFFormValue.cpp +++ b/llvm/lib/DebugInfo/DWARFFormValue.cpp @@ -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); diff --git a/llvm/lib/DebugInfo/DWARFFormValue.h b/llvm/lib/DebugInfo/DWARFFormValue.h index 22ac0116646..c5b590db95f 100644 --- a/llvm/lib/DebugInfo/DWARFFormValue.h +++ b/llvm/lib/DebugInfo/DWARFFormValue.h @@ -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; |