mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
XCore target: fix weak linkage attribute handling
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190298 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c3cee57f7d
commit
5c28673c3b
@ -23,7 +23,6 @@ XCoreMCAsmInfo::XCoreMCAsmInfo(StringRef TT) {
|
||||
|
||||
PrivateGlobalPrefix = ".L";
|
||||
AscizDirective = ".asciiz";
|
||||
WeakDefDirective = "\t.weak\t";
|
||||
WeakRefDirective = "\t.weak\t";
|
||||
|
||||
// Debug
|
||||
|
17
test/CodeGen/XCore/linkage.ll
Normal file
17
test/CodeGen/XCore/linkage.ll
Normal file
@ -0,0 +1,17 @@
|
||||
; RUN: llc < %s -march=xcore | FileCheck %s
|
||||
|
||||
; CHECK: .weak fd
|
||||
define weak void @fd() {
|
||||
call void @fr(i32* @gd, i32* @gr)
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK: .weak gd
|
||||
@gd = weak global i32 0
|
||||
|
||||
; CHECK: .weak gr
|
||||
@gr = extern_weak global i32
|
||||
|
||||
; CHECK: .weak fr
|
||||
declare extern_weak void @fr(i32*, i32*)
|
||||
|
Loading…
Reference in New Issue
Block a user