[PATCH] D44227: [ELF] Convert {read, write}*be to endianness-aware read/write.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 8 15:26:05 PST 2018


ruiu added inline comments.


================
Comment at: ELF/Target.h:184
+// Endianness-aware read/write.
+inline uint16_t read16(const void *P) {
+  return llvm::support::endian::read16(P, Config->Endianness);
----------------
Please use `uint8_t *` instead of `void *` for P.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D44227





More information about the llvm-commits mailing list