diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2018-02-23 19:30:48 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2018-02-23 19:30:48 +0000 |
commit | 0e355701be41ad5bc6f83313a7f1ced24336c42d (patch) | |
tree | e6d410c6da69daa13c8ad94d2b32259d58fb976f /test/CodeGenCXX/volatile-1.cpp | |
parent | c036db5904d43222dd47aae0b1a3e5a2e0c44ad6 (diff) | |
download | clang-0e355701be41ad5bc6f83313a7f1ced24336c42d.tar.gz |
Bring r325915 back.
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@325940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/volatile-1.cpp')
-rw-r--r-- | test/CodeGenCXX/volatile-1.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGenCXX/volatile-1.cpp b/test/CodeGenCXX/volatile-1.cpp index 75fb0d26f4..525e828da3 100644 --- a/test/CodeGenCXX/volatile-1.cpp +++ b/test/CodeGenCXX/volatile-1.cpp @@ -1,11 +1,11 @@ // RUN: %clang_cc1 -Wno-unused-value -triple %itanium_abi_triple -emit-llvm %s -std=c++98 -o - | FileCheck %s // RUN: %clang_cc1 -Wno-unused-value -triple %itanium_abi_triple -emit-llvm %s -std=c++11 -o - | FileCheck -check-prefix=CHECK -check-prefix=CHECK11 %s -// CHECK: @i = global [[INT:i[0-9]+]] 0 +// CHECK: @i = {{(dso_local )?}}global [[INT:i[0-9]+]] 0 volatile int i, j, k; volatile int ar[5]; volatile char c; -// CHECK: @ci = global [[CINT:.*]] zeroinitializer +// CHECK: @ci = {{(dso_local )?}}global [[CINT:.*]] zeroinitializer volatile _Complex int ci; volatile struct S { #ifdef __cplusplus |