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
14 lines
425 B
C
14 lines
425 B
C
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-pc-win32 | FileCheck %s
|
|
|
|
// CHECK: define dso_local void @"\01?f@@$$J0YAXP6AX@Z@Z"
|
|
__attribute__((overloadable)) void f(void (*x)()) {}
|
|
|
|
// CHECK: define dso_local void @f
|
|
void f(void (*x)(int)) {}
|
|
|
|
// CHECK: define dso_local void @g
|
|
void g(void (*x)(int)) {}
|
|
|
|
// CHECK: define dso_local void @"\01?g@@$$J0YAXP6AX@Z@Z"
|
|
__attribute__((overloadable)) void g(void (*x)()) {}
|