[PATCH] D87762: [AMDGPU] Corrected directive to use for ELF weak refs

Dmitry Preobrazhensky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 08:54:08 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG06d058afecdf: [AMDGPU] Corrected directive to use for ELF weak refs (authored by dp).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87762/new/

https://reviews.llvm.org/D87762

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


Index: llvm/test/CodeGen/AMDGPU/hsa-globals.ll
===================================================================
--- llvm/test/CodeGen/AMDGPU/hsa-globals.ll
+++ llvm/test/CodeGen/AMDGPU/hsa-globals.ll
@@ -13,6 +13,8 @@
   ret void
 }
 
+ at weak_global = extern_weak addrspace(1) global i32
+
 ; ASM: .type linkonce_odr_global_program, at object
 ; ASM: .section .bss,#alloc,#write
 ; ASM: .weak linkonce_odr_global_program
@@ -48,3 +50,5 @@
 ; ASM: external_readonly:
 ; ASM: .long 0
 ; ASM: .size external_readonly, 4
+
+; ASM: .weak weak_global
Index: llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
+++ llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
@@ -40,7 +40,6 @@
   HasAggressiveSymbolFolding = true;
   COMMDirectiveAlignmentIsInBytes = false;
   HasNoDeadStrip = true;
-  WeakRefDirective = ".weakref\t";
   //===--- Dwarf Emission Directives -----------------------------------===//
   SupportsDebugInformation = true;
   DwarfRegNumForCFI = true;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87762.292238.patch
Type: text/x-patch
Size: 1101 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200916/eef40687/attachment.bin>


More information about the llvm-commits mailing list