Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
ELF/Arch/PPC64.cpp | ||
---|---|---|
116 ↗ | (On Diff #137481) | I think it is better to define write32 like this void write32(uint8_t *Loc, uint32_t Val) { endian::write32(Loc, Val, Config->Endianness); } and use it, instead of passing E for each function call. |
ELF/Arch/PPC64.cpp | ||
---|---|---|
116 ↗ | (On Diff #137481) | Where should I put write16 write32 read16 read32? ELF/Target.h TargetInfo? |
ELF/Target.cpp | ||
---|---|---|
118 ↗ | (On Diff #137596) | If this is performance critical, I can use inline functions. |
ELF/Target.h | ||
---|---|---|
184 ↗ | (On Diff #137599) | Please use uint8_t * instead of void * for P. |
ELF/Target.h | ||
---|---|---|
184 ↗ | (On Diff #137599) | ../projects/lld/ELF/SyntheticSections.cpp:1767:5: error: no matching function for call to 'write32' write32(Buckets + I->BucketIdx, I->Sym->DynsymIndex); ^~~~~~~ ../projects/lld/ELF/Target.h:200:13: note: candidate function not viable: no known conversion from 'uint32_t *' (aka 'unsigned int *') to 'uint8_t *' (aka 'unsigned char *') for 1st argument inline void write32(uint8_t *P, uint32_t V) { ^ ../projects/lld/ELF/SyntheticSections.cpp:1841:3: error: no matching function for call to 'write32' write32(P++, NumSymbols); // nbucket ^~~~~~~ ../projects/lld/ELF/Target.h:200:13: note: candidate function not viable: no known conversion from 'uint32_t *' (aka 'unsigned int *') to 'uint8_t *' (aka 'unsigned char *') for 1st argument inline void write32(uint8_t *P, uint32_t V) { ^ ../projects/lld/ELF/SyntheticSections.cpp:1842:3: error: no matching function for call to 'write32' write32(P++, NumSymbols); // nchain uint8_t* uint32_t* uint16_t* typed pointers are all used. void * is a common type they will accept. |