[all-commits] [llvm/llvm-project] ba6e15: [TargetMachine] Move COFF special case for Externa...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Aug 23 13:54:53 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ba6e15d8cc52fab35dde41ab34b43283554c9a59
      https://github.com/llvm/llvm-project/commit/ba6e15d8cc52fab35dde41ab34b43283554c9a59
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-08-23 (Mon, 23 Aug 2021)

  Changed paths:
    M llvm/lib/Target/TargetMachine.cpp
    M llvm/lib/Target/X86/X86Subtarget.cpp

  Log Message:
  -----------
  [TargetMachine] Move COFF special case for ExternalSymbolSDNode from shouldAssumeDSOLocal to X86Subtarget

Intended to be NFC. ARM/AArch64 don't appear to need adjustment.

TargetMachine::shouldAssumeDSOLocal is expected to be very simple, ideally
matching isDSOLocal(). The IR producers are expected to set dso_local correctly.
(While some may think this function can make producers' work easier, the
function is really not in a good position to set dso_local. See the various
special cases we duplicate from clang CodeGenModule.cpp.)

Reviewed By: mstorsjo

Differential Revision: https://reviews.llvm.org/D108514




More information about the All-commits mailing list