File tree Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -155,9 +155,9 @@ class AArch64AsmPrinter : public AsmPrinter {
155155 SetupMachineFunction (MF);
156156
157157 if (STI->isTargetCOFF ()) {
158- bool Internal = MF.getFunction ().hasInternalLinkage ();
159- COFF::SymbolStorageClass Scl = Internal ? COFF::IMAGE_SYM_CLASS_STATIC
160- : COFF::IMAGE_SYM_CLASS_EXTERNAL;
158+ bool Local = MF.getFunction ().hasLocalLinkage ();
159+ COFF::SymbolStorageClass Scl =
160+ Local ? COFF::IMAGE_SYM_CLASS_STATIC : COFF::IMAGE_SYM_CLASS_EXTERNAL;
161161 int Type =
162162 COFF::IMAGE_SYM_DTYPE_FUNCTION << COFF::SCT_COMPLEX_TYPE_SHIFT;
163163
Original file line number Diff line number Diff line change 1+ ; RUN: llc -mtriple aarch64-unknown-windows-msvc %s -o - | FileCheck %s
2+
3+ define internal void @internal () {
4+ ret void
5+ }
6+
7+ define private void @private () {
8+ ret void
9+ }
10+
11+ ; Check that the internal and private linkage symbols have IMAGE_SYM_CLASS_STATIC (3).
12+ ; CHECK: .def internal;
13+ ; CHECK: .scl 3;
14+ ; CHECK: .def .Lprivate;
15+ ; CHECK: .scl 3;
Original file line number Diff line number Diff line change 1+ ; RUN: llc -mtriple x86_64-unknown-windows-msvc %s -o - | FileCheck %s
2+
3+ define internal void @internal () {
4+ ret void
5+ }
6+
7+ define private void @private () {
8+ ret void
9+ }
10+
11+ ; Check that the internal and private linkage symbols have IMAGE_SYM_CLASS_STATIC (3).
12+ ; CHECK: .def internal;
13+ ; CHECK: .scl 3;
14+ ; CHECK: .def .Lprivate;
15+ ; CHECK: .scl 3;
You can’t perform that action at this time.
0 commit comments