[PATCH] D53905: [ELF] Refactor per-target TLS layout configuration. NFC.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 31 08:12:05 PDT 2018


ruiu added inline comments.


================
Comment at: ELF/InputSection.cpp:571
+// target-specific adjustment to produce a thread-pointer-relative offset.
+int64_t lld::elf::getTlsTpOffset() {
+  switch (Config->EMachine) {
----------------
I think you can make this a file-scope `static` function.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D53905





More information about the llvm-commits mailing list