mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Define WeakRefDirective.
llvm-svn: 132098
This commit is contained in:
parent
5cd755549b
commit
3f49cbeb37
@ -24,4 +24,5 @@ MipsMCAsmInfo::MipsMCAsmInfo(const Target &T, StringRef TT) {
|
||||
ZeroDirective = "\t.space\t";
|
||||
GPRel32Directive = "\t.gpword\t";
|
||||
HasSetDirective = false;
|
||||
WeakRefDirective = "\t.weak\t";
|
||||
}
|
||||
|
12
test/CodeGen/Mips/weak.ll
Normal file
12
test/CodeGen/Mips/weak.ll
Normal file
@ -0,0 +1,12 @@
|
||||
; RUN: llc -march=mips < %s | FileCheck %s
|
||||
|
||||
@t = common global i32 (...)* null, align 4
|
||||
|
||||
define void @f() nounwind {
|
||||
entry:
|
||||
store i32 (...)* @test_weak, i32 (...)** @t, align 4
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK: .weak test_weak
|
||||
declare extern_weak i32 @test_weak(...)
|
Loading…
x
Reference in New Issue
Block a user