Skip to content

Commit a3eae1b

Browse files
committed
[CodeGen][ARM64EC] Use MCSymbolRefExpr::VK_None for function aliases.
1 parent f2f3387 commit a3eae1b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ void AArch64AsmPrinter::emitFunctionEntryLabel() {
11741174
OutStreamer->endCOFFSymbolDef();
11751175
OutStreamer->emitSymbolAttribute(Src, MCSA_WeakAntiDep);
11761176
OutStreamer->emitAssignment(
1177-
Src, MCSymbolRefExpr::create(Dst, MCSymbolRefExpr::VK_WEAKREF,
1177+
Src, MCSymbolRefExpr::create(Dst, MCSymbolRefExpr::VK_None,
11781178
MMI->getContext()));
11791179
};
11801180

llvm/test/CodeGen/AArch64/arm64ec-symbols.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ define void @caller() nounwind {
1111
; CHECK-NEXT: .type 32;
1212
; CHECK-NEXT: .endef
1313
; CHECK-NEXT: .weak_anti_dep caller
14-
; CHECK-NEXT: .set caller, "#caller"@WEAKREF
14+
; CHECK-NEXT: .set caller, "#caller"{{$}}
1515

1616
; CHECK: .def func;
1717
; CHECK-NEXT: .type 32;
1818
; CHECK-NEXT: .endef
1919
; CHECK-NEXT: .weak_anti_dep func
20-
; CHECK-NEXT: .set func, "#func"@WEAKREF
20+
; CHECK-NEXT: .set func, "#func"{{$}}
2121
; CHECK-NEXT: .def "#func";
2222
; CHECK-NEXT: .type 32;
2323
; CHECK-NEXT: .endef
2424
; CHECK-NEXT: .weak_anti_dep "#func"
25-
; CHECK-NEXT: .set "#func", "#func$exit_thunk"@WEAKREF
25+
; CHECK-NEXT: .set "#func", "#func$exit_thunk"{{$}}

0 commit comments

Comments
 (0)