Fix build faliure introduced by r217129.
authorFrederic Riss <friss@apple.com>
Thu, 4 Sep 2014 06:35:09 +0000 (06:35 +0000)
committerFrederic Riss <friss@apple.com>
Thu, 4 Sep 2014 06:35:09 +0000 (06:35 +0000)
Looks like one can't put 'const uint8_t' as ArrayRef contained type. It fails to build with libstdc++.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217132 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo/DWARFFormValue.h
lib/DebugInfo/DWARFFormValue.cpp

index 2dde8fe242a67e19dd3f788a23825dda6c999bab..162b1deec0f6f0e5bab47f2a13ddebac7c73d904 100644 (file)
@@ -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;
index 2f8affc86239b0d20bf080ef100c30ef66b2cdc0..8bd3a89411e414030fa5ff102719641e78e8f60a 100644 (file)
@@ -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);
 }