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 | 922f2aa9b2f13631febe7167e6db3cd3b421e161 (patch) | |
tree | bdbcb27e99714519c2e27a4358ce87c069bc4ad9 /clang/test/CodeGen/ms_this.cpp | |
parent | 1afffac05b37af21c6df63ef5e662e2e1b81c2f8 (diff) | |
download | bcm5719-llvm-922f2aa9b2f13631febe7167e6db3cd3b421e161.tar.gz bcm5719-llvm-922f2aa9b2f13631febe7167e6db3cd3b421e161.zip |
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.
llvm-svn: 325940
Diffstat (limited to 'clang/test/CodeGen/ms_this.cpp')
-rw-r--r-- | clang/test/CodeGen/ms_this.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeGen/ms_this.cpp b/clang/test/CodeGen/ms_this.cpp index 8647a5bc8b8..3776a6ebd9f 100644 --- a/clang/test/CodeGen/ms_this.cpp +++ b/clang/test/CodeGen/ms_this.cpp @@ -13,7 +13,7 @@ public: void runc(); }; -// CHECK: define void @"\01?runc@t2@@ +// CHECK: define dso_local void @"\01?runc@t2@@ void t2::runc() { double num = 0; __asm { @@ -26,7 +26,7 @@ void t2::runc() { }; } -// CHECK: define void @"\01?runc@t1@@ +// CHECK: define dso_local void @"\01?runc@t1@@ void t1::runc() { double num = 0; __asm { @@ -41,7 +41,7 @@ void t1::runc() { struct s { int a; - // CHECK: define linkonce_odr void @"\01?func@s@@ + // CHECK: define linkonce_odr dso_local void @"\01?func@s@@ void func() { __asm mov rax, [this] // CHECK: [[THIS_ADDR_S:%.+]] = alloca %struct.s* |