summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/ms-thread_local.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-09-12 02:51:43 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-09-12 02:51:43 +0000
commitcb60a4305b469d8c99ff9fb6f0c393c43398d7d9 (patch)
tree00eb2ff9c5679346fa811b91466a24db5ea23f63 /clang/test/CodeGenCXX/ms-thread_local.cpp
parentcd0fffb6e1f779884a9df21d898635ab9d72954c (diff)
downloadbcm5719-llvm-cb60a4305b469d8c99ff9fb6f0c393c43398d7d9.tar.gz
bcm5719-llvm-cb60a4305b469d8c99ff9fb6f0c393c43398d7d9.zip
[MS ABI] Add /include directives for dynamic TLS
MSVC emits /include directives in the .drective section for the __dyn_tls_init function (decorated as ___dyn_tls_init@12 for 32-bit). This fixes PR30347. llvm-svn: 281189
Diffstat (limited to 'clang/test/CodeGenCXX/ms-thread_local.cpp')
-rw-r--r--clang/test/CodeGenCXX/ms-thread_local.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/ms-thread_local.cpp b/clang/test/CodeGenCXX/ms-thread_local.cpp
index c29473fd6fc..5183ab5c32e 100644
--- a/clang/test/CodeGenCXX/ms-thread_local.cpp
+++ b/clang/test/CodeGenCXX/ms-thread_local.cpp
@@ -26,3 +26,8 @@ A f() {
(void)b;
return c;
}
+
+// CHECK: !llvm.module.flags = !{{{.*}}}
+// CHECK: !{{[0-9]+}} = !{i32 6, !"Linker Options", ![[link_opts:[0-9]+]]}
+// CHECK: ![[link_opts]] = !{![[dyn_tls_init:[0-9]+]]}
+// CHECK: ![[dyn_tls_init]] = !{!"/include:___dyn_tls_init@12"}
OpenPOWER on IntegriCloud