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

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 8 09:56:20 PST 2018


MaskRay added inline comments.


================
Comment at: ELF/Target.cpp:118
 
+uint16_t elf::read16(const void *P) {
+  return llvm::support::endian::read16(P, Config->Endianness);
----------------
If this is performance critical, I can use inline functions.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D44227





More information about the llvm-commits mailing list