mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
Fix the MSVC build following r212382
Looks like the casts are needed there after all. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212399 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1508c82095
commit
bb7ad610ef
@ -42,8 +42,10 @@ StringRef getELFRelocationTypeName(uint32_t Machine, uint32_t Type);
|
|||||||
inline std::pair<unsigned char, unsigned char>
|
inline std::pair<unsigned char, unsigned char>
|
||||||
getElfArchType(StringRef Object) {
|
getElfArchType(StringRef Object) {
|
||||||
if (Object.size() < ELF::EI_NIDENT)
|
if (Object.size() < ELF::EI_NIDENT)
|
||||||
return std::make_pair(ELF::ELFCLASSNONE, ELF::ELFDATANONE);
|
return std::make_pair((uint8_t)ELF::ELFCLASSNONE,
|
||||||
return std::make_pair(Object[ELF::EI_CLASS], Object[ELF::EI_DATA]);
|
(uint8_t)ELF::ELFDATANONE);
|
||||||
|
return std::make_pair((uint8_t)Object[ELF::EI_CLASS],
|
||||||
|
(uint8_t)Object[ELF::EI_DATA]);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class ELFT>
|
template <class ELFT>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user