1
0
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:
Robert Lytton 2013-09-09 10:41:57 +00:00
parent 2c532e9c9b
commit 4a5772968b
2 changed files with 17 additions and 1 deletions

View File

@ -23,7 +23,6 @@ XCoreMCAsmInfo::XCoreMCAsmInfo(StringRef TT) {
PrivateGlobalPrefix = ".L";
AscizDirective = ".asciiz";
WeakDefDirective = "\t.weak\t";
WeakRefDirective = "\t.weak\t";
// Debug

View 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*)