mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +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:
parent
8b1d641c54
commit
72e28fe98a
@ -70,7 +70,7 @@ public:
|
|||||||
Optional<const char *> getAsCString(const DWARFUnit *U) const;
|
Optional<const char *> getAsCString(const DWARFUnit *U) const;
|
||||||
Optional<uint64_t> getAsAddress(const DWARFUnit *U) const;
|
Optional<uint64_t> getAsAddress(const DWARFUnit *U) const;
|
||||||
Optional<uint64_t> getAsSectionOffset() 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,
|
bool skipValue(DataExtractor debug_info_data, uint32_t *offset_ptr,
|
||||||
const DWARFUnit *u) const;
|
const DWARFUnit *u) const;
|
||||||
|
@ -549,9 +549,9 @@ Optional<uint64_t> DWARFFormValue::getAsUnsignedConstant() const {
|
|||||||
return Value.uval;
|
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))
|
if (!isFormClass(FC_Block) && !isFormClass(FC_Exprloc))
|
||||||
return None;
|
return None;
|
||||||
return ArrayRef<const uint8_t>(Value.data, Value.uval);
|
return ArrayRef<uint8_t>(Value.data, Value.uval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user