[llvm-commits] [llvm] r132098 - in /llvm/trunk: lib/Target/Mips/MipsMCAsmInfo.cpp test/CodeGen/Mips/weak.ll
Akira Hatanaka
ahatanak at gmail.com
Wed May 25 16:30:30 PDT 2011
Author: ahatanak
Date: Wed May 25 18:30:30 2011
New Revision: 132098
URL: http://llvm.org/viewvc/llvm-project?rev=132098&view=rev
Log:
Define WeakRefDirective.
Added:
llvm/trunk/test/CodeGen/Mips/weak.ll
Modified:
llvm/trunk/lib/Target/Mips/MipsMCAsmInfo.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsMCAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsMCAsmInfo.cpp?rev=132098&r1=132097&r2=132098&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsMCAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsMCAsmInfo.cpp Wed May 25 18:30:30 2011
@@ -24,4 +24,5 @@
ZeroDirective = "\t.space\t";
GPRel32Directive = "\t.gpword\t";
HasSetDirective = false;
+ WeakRefDirective = "\t.weak\t";
}
Added: llvm/trunk/test/CodeGen/Mips/weak.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Mips/weak.ll?rev=132098&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Mips/weak.ll (added)
+++ llvm/trunk/test/CodeGen/Mips/weak.ll Wed May 25 18:30:30 2011
@@ -0,0 +1,12 @@
+; RUN: llc -march=mips < %s | FileCheck %s
+
+ at 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(...)
More information about the llvm-commits
mailing list