mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 15:56:09 +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
15 lines
488 B
C++
15 lines
488 B
C++
// RUN: %clang_cc1 %s -triple %itanium_abi_triple -std=c++11 -emit-llvm -o - | FileCheck %s
|
|
|
|
class A {
|
|
virtual void f();
|
|
virtual void g();
|
|
virtual ~A();
|
|
};
|
|
|
|
void A::f() {}
|
|
|
|
// CHECK: define {{(dso_local )?}}[[CC:(x86_thiscallcc )?]]void @_ZN1A1fEv({{.*}}) unnamed_addr
|
|
// CHECK: declare {{(dso_local )?}}[[CC]]void @_ZN1A1gEv({{.*}}) unnamed_addr
|
|
// CHECK: declare {{.*}} @_ZN1AD1Ev({{.*}}) unnamed_addr
|
|
// CHECK: declare {{(dso_local )?}}[[CC]]void @_ZN1AD0Ev({{.*}}) unnamed_addr
|