diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2018-01-18 02:08:23 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2018-01-18 02:08:23 +0000 |
commit | 9fbc040599588149d34048a81b73b9422a25f6a4 (patch) | |
tree | 81b22f7b9eec3f941ea6f5c37f3f36d4c29d6f6f /llvm/test/Bitcode | |
parent | a9346e050f301dfea9e1cf50d39a4b7180091b44 (diff) | |
download | bcm5719-llvm-9fbc040599588149d34048a81b73b9422a25f6a4.tar.gz bcm5719-llvm-9fbc040599588149d34048a81b73b9422a25f6a4.zip |
Make GlobalValues with non-default visibilility dso_local.
This is similar to r322317, but for visibility. It is not as neat
because we have to special case extern_weak.
The idea is the same as the previous change, make the transition to
explicit dso_local easier for the frontends. With this they only have
to add dso_local to symbols where we need some external information to
decide if it is dso_local (like it being part of an ELF executable).
llvm-svn: 322806
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r-- | llvm/test/Bitcode/dso_location.ll | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/Bitcode/dso_location.ll b/llvm/test/Bitcode/dso_location.ll index 4dc9fe24c19..3ad511bad43 100644 --- a/llvm/test/Bitcode/dso_location.ll +++ b/llvm/test/Bitcode/dso_location.ll @@ -15,11 +15,11 @@ @default_local_global = dso_local default global i32 0 ; CHECK: @default_local_global = dso_local global i32 0 -@hidden_local_global = dso_local hidden global i32 0 -; CHECK: @hidden_local_global = dso_local hidden global i32 0 +@hidden_local_global = hidden global i32 0 +; CHECK: @hidden_local_global = hidden global i32 0 -@protected_local_global = dso_local protected global i32 0 -; CHECK: @protected_local_global = dso_local protected global i32 0 +@protected_local_global = protected global i32 0 +; CHECK: @protected_local_global = protected global i32 0 @local_alias = dso_local alias i32, i32* @local_global ; CHECK-DAG: @local_alias = dso_local alias i32, i32* @local_global @@ -32,11 +32,11 @@ declare dso_local default void @default_local() ; CHECK: declare dso_local void @default_local() -declare dso_local hidden void @hidden_local() -; CHECK: declare dso_local hidden void @hidden_local() +declare hidden void @hidden_local() +; CHECK: declare hidden void @hidden_local() -define dso_local protected void @protected_local() { -; CHECK: define dso_local protected void @protected_local() +define protected void @protected_local() { +; CHECK: define protected void @protected_local() entry: ret void } |