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:
Robert Lytton 2013-09-09 10:41:57 +00:00
parent c3cee57f7d
commit 5c28673c3b
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*)