mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
XCore target: fix weak linkage attribute handling
llvm-svn: 190298
This commit is contained in:
parent
2c532e9c9b
commit
4a5772968b
@ -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