1
0
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:
Rafael Espindola 2006-12-05 17:00:17 +00:00
parent ee4fd18228
commit da1fffc4e1
2 changed files with 10 additions and 1 deletions

View File

@ -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);

View 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
}