mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 05:16:06 +00:00

The tests that failed on a windows host have been fixed. Original message: Start setting dso_local for COFF. With this there are still some GVs where we don't set dso_local because setGVProperties is never called. I intend to fix that in followup commits. This is just the bare minimum to teach shouldAssumeDSOLocal what it should do for COFF. llvm-svn: 325940
21 lines
734 B
C++
21 lines
734 B
C++
// RUN: %clang_cc1 -triple %itanium_abi_triple -fms-extensions -emit-llvm %s -o- | FileCheck %s
|
|
|
|
struct A {
|
|
void foo() __unaligned;
|
|
void foo() const __unaligned;
|
|
void foo() volatile __unaligned;
|
|
void foo() const volatile __unaligned;
|
|
};
|
|
|
|
void A::foo() __unaligned {}
|
|
// CHECK: define {{(dso_local )?}}[[THISCALL:(x86_thiscallcc )?]]void @_ZNU11__unaligned1A3fooEv(
|
|
|
|
void A::foo() const __unaligned {}
|
|
// CHECK: define {{(dso_local )?}}[[THISCALL]]void @_ZNU11__unalignedK1A3fooEv(
|
|
|
|
void A::foo() volatile __unaligned {}
|
|
// CHECK: define {{(dso_local )?}}[[THISCALL]]void @_ZNU11__unalignedV1A3fooEv(
|
|
|
|
void A::foo() const volatile __unaligned {}
|
|
// CHECK: define {{(dso_local )?}}[[THISCALL]]void @_ZNU11__unalignedVK1A3fooEv(
|