mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
add support for weak linkage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32222 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eae6ce5df4
commit
204b0c2ca0
@ -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/CodeGen/ARM/weak.ll
Normal file
9
test/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…
x
Reference in New Issue
Block a user