[all-commits] [llvm/llvm-project] 06d058: [AMDGPU] Corrected directive to use for ELF weak refs

dpreobra via All-commits all-commits at lists.llvm.org
Wed Sep 16 08:54:14 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 06d058afecdf54021fbf8fece422dd04766227ea
      https://github.com/llvm/llvm-project/commit/06d058afecdf54021fbf8fece422dd04766227ea
  Author: Dmitry Preobrazhensky <dmitry.preobrazhensky at amd.com>
  Date:   2020-09-16 (Wed, 16 Sep 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
    M llvm/test/CodeGen/AMDGPU/hsa-globals.ll

  Log Message:
  -----------
  [AMDGPU] Corrected directive to use for ELF weak refs

WeakRefDirective should specify a directive to declare "a global as being a weak undefined symbol".
The directive used by AMDGPU was incorrect - ".weakref" was intended for other purposes.
The correct directive is ".weak" and it is already defined as default for ELF.
So the redefinition was removed.

Reviewers: arsenm, rampitec

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




More information about the All-commits mailing list