llvm.org GIT mirror llvm / 204b0c2
add support for weak linkage git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32222 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 13 years ago
2 changed file(s) with 10 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
127127 break;
128128 case Function::WeakLinkage:
129129 case Function::LinkOnceLinkage:
130 assert(0 && "Not implemented");
130 O << "\t.weak\t" << CurrentFnName << "\n";
131131 break;
132132 }
133133 EmitAlignment(2, F);
0 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep .weak
2
3 implementation ; Functions:
4
5 weak uint %f() {
6 entry:
7 unreachable
8 }