diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2018-01-11 22:15:12 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2018-01-11 22:15:12 +0000 |
commit | cbca487f4931ff089feebaa7d356886baa510847 (patch) | |
tree | 89f6e31c1c5bc6ce5dc4f5aeb98b123bdb60a77e /clang/test/OpenMP/target_parallel_codegen_registration.cpp | |
parent | e4b0231c63d40408d06ff4c3669ded4b4ecaaa85 (diff) | |
download | bcm5719-llvm-cbca487f4931ff089feebaa7d356886baa510847.tar.gz bcm5719-llvm-cbca487f4931ff089feebaa7d356886baa510847.zip |
Make internal/private GVs implicitly dso_local.
While updating clang tests for having clang set dso_local I noticed
that:
- There are *a lot* of tests to update.
- Many of the updates are redundant.
They are redundant because a GV is "obviously dso_local". This patch
starts formalizing that a bit by requiring that internal and private
GVs be dso_local too. Since they all are, we don't have to print
dso_local to the textual representation, making it a bit more compact
and easier to read.
llvm-svn: 322318
Diffstat (limited to 'clang/test/OpenMP/target_parallel_codegen_registration.cpp')
-rw-r--r-- | clang/test/OpenMP/target_parallel_codegen_registration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/OpenMP/target_parallel_codegen_registration.cpp b/clang/test/OpenMP/target_parallel_codegen_registration.cpp index 5b2af0f15c7..649a4b50fc7 100644 --- a/clang/test/OpenMP/target_parallel_codegen_registration.cpp +++ b/clang/test/OpenMP/target_parallel_codegen_registration.cpp @@ -393,7 +393,7 @@ struct ST { //CHECK: ret void //CHECK: declare i32 @__tgt_unregister_lib([[DSCTY]]*) -//CHECK: define linkonce hidden void @[[REGFN]](i8*) +//CHECK: define linkonce dso_local hidden void @[[REGFN]](i8*) //CHECK-SAME: comdat { //CHECK: call i32 @__tgt_register_lib([[DSCTY]]* [[DESC]]) //CHECK: call i32 @__cxa_atexit(void (i8*)* @[[UNREGFN]], i8* bitcast ([[DSCTY]]* [[DESC]] to i8*), |