[all-commits] [llvm/llvm-project] 878c2a: [RuntimeDyld] Guard UsedTLSStorage to x86 ELF only

jsji via All-commits all-commits at lists.llvm.org
Mon Sep 6 18:34:56 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 878c2a42ec6c83f88618ee24af02b6d82db9c28e
      https://github.com/llvm/llvm-project/commit/878c2a42ec6c83f88618ee24af02b6d82db9c28e
  Author: Jinsong Ji <jji at us.ibm.com>
  Date:   2021-09-07 (Tue, 07 Sep 2021)

  Changed paths:
    M llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp

  Log Message:
  -----------
  [RuntimeDyld] Guard UsedTLSStorage to x86 ELF only

UsedTLSStorage is only used in allocateTLSSection,
guarded in x87 ELF only.
So clang will emit error with -Werror on.

.../llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp:288:12:
error: private field 'UsedTLSStorage' is not used
[-Werror,-Wunused-private-field]
  unsigned UsedTLSStorage = 0;
           ^




More information about the All-commits mailing list