mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
add support for weak linkage
llvm-svn: 32222
This commit is contained in:
parent
ee4fd18228
commit
da1fffc4e1
@ -128,7 +128,7 @@ bool ARMAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
break;
|
||||
case Function::WeakLinkage:
|
||||
case Function::LinkOnceLinkage:
|
||||
assert(0 && "Not implemented");
|
||||
O << "\t.weak\t" << CurrentFnName << "\n";
|
||||
break;
|
||||
}
|
||||
EmitAlignment(2, F);
|
||||
|
9
test/Regression/CodeGen/ARM/weak.ll
Normal file
9
test/Regression/CodeGen/ARM/weak.ll
Normal file
@ -0,0 +1,9 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep .weak
|
||||
|
||||
implementation ; Functions:
|
||||
|
||||
weak uint %f() {
|
||||
entry:
|
||||
unreachable
|
||||
}
|
Loading…
Reference in New Issue
Block a user