diff options
author | Frederic Riss <friss@apple.com> | 2014-09-04 06:35:09 +0000 |
---|---|---|
committer | Frederic Riss <friss@apple.com> | 2014-09-04 06:35:09 +0000 |
commit | eab1777170688b85f5ee763f9071837ccd70319c (patch) | |
tree | 7bc21e6788ca82b04285adfb2be950b87640a905 /llvm | |
parent | 228ab3d7b33fde331e331750ece975f6769eeca8 (diff) | |
download | bcm5719-llvm-eab1777170688b85f5ee763f9071837ccd70319c.tar.gz bcm5719-llvm-eab1777170688b85f5ee763f9071837ccd70319c.zip |
Fix build faliure introduced by r217129.
Looks like one can't put 'const uint8_t' as ArrayRef contained type. It fails to build with libstdc++.
llvm-svn: 217132
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); } |