mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
DWARFFormValue.cpp: Appease gcc to give explicit constructors.
error: conversion from `const uint8_t*' to non-scalar type `llvm::ArrayRef<unsigned char>' requested git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193575 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c04d241d13
commit
f5f0b20516
@ -66,13 +66,13 @@ ArrayRef<uint8_t> DWARFFormValue::getFixedFormSizes(uint8_t AddrSize,
|
|||||||
uint16_t Version) {
|
uint16_t Version) {
|
||||||
uint8_t RefAddrSize = getRefAddrSize(AddrSize, Version);
|
uint8_t RefAddrSize = getRefAddrSize(AddrSize, Version);
|
||||||
if (AddrSize == 4 && RefAddrSize == 4)
|
if (AddrSize == 4 && RefAddrSize == 4)
|
||||||
return FixedFormSizes<4, 4>::sizes;
|
return ArrayRef<uint8_t>(FixedFormSizes<4, 4>::sizes);
|
||||||
if (AddrSize == 4 && RefAddrSize == 8)
|
if (AddrSize == 4 && RefAddrSize == 8)
|
||||||
return FixedFormSizes<4, 8>::sizes;
|
return ArrayRef<uint8_t>(FixedFormSizes<4, 8>::sizes);
|
||||||
if (AddrSize == 8 && RefAddrSize == 4)
|
if (AddrSize == 8 && RefAddrSize == 4)
|
||||||
return FixedFormSizes<8, 4>::sizes;
|
return ArrayRef<uint8_t>(FixedFormSizes<8, 4>::sizes);
|
||||||
if (AddrSize == 8 && RefAddrSize == 8)
|
if (AddrSize == 8 && RefAddrSize == 8)
|
||||||
return FixedFormSizes<8, 8>::sizes;
|
return ArrayRef<uint8_t>(FixedFormSizes<8, 8>::sizes);
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user