diff options
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/DebugInfo/DWARFFormValue.h | 2 | ||||
-rw-r--r-- | llvm/lib/DebugInfo/DWARFFormValue.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/DebugInfo/DWARFFormValue.h b/llvm/include/llvm/DebugInfo/DWARFFormValue.h index 2dde8fe242a..162b1deec0f 100644 --- a/llvm/include/llvm/DebugInfo/DWARFFormValue.h +++ b/llvm/include/llvm/DebugInfo/DWARFFormValue.h @@ -70,7 +70,7 @@ public: Optional<const char *> getAsCString(const DWARFUnit *U) const; Optional<uint64_t> getAsAddress(const DWARFUnit *U) const; Optional<uint64_t> getAsSectionOffset() const; - Optional<ArrayRef<const uint8_t>> getAsBlock() const; + Optional<ArrayRef<uint8_t>> getAsBlock() const; bool skipValue(DataExtractor debug_info_data, uint32_t *offset_ptr, const DWARFUnit *u) const; diff --git a/llvm/lib/DebugInfo/DWARFFormValue.cpp b/llvm/lib/DebugInfo/DWARFFormValue.cpp index 2f8affc8623..8bd3a89411e 100644 --- a/llvm/lib/DebugInfo/DWARFFormValue.cpp +++ b/llvm/lib/DebugInfo/DWARFFormValue.cpp @@ -549,9 +549,9 @@ Optional<uint64_t> DWARFFormValue::getAsUnsignedConstant() const { return Value.uval; } -Optional<ArrayRef<const uint8_t>> DWARFFormValue::getAsBlock() const { +Optional<ArrayRef<uint8_t>> DWARFFormValue::getAsBlock() const { if (!isFormClass(FC_Block) && !isFormClass(FC_Exprloc)) return None; - return ArrayRef<const uint8_t>(Value.data, Value.uval); + return ArrayRef<uint8_t>(Value.data, Value.uval); } |