1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

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
This commit is contained in:
Frederic Riss 2014-09-04 06:35:09 +00:00
parent 8b1d641c54
commit 72e28fe98a
2 changed files with 3 additions and 3 deletions

View 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;

View 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);
}