Make GlobalValues with non-default visibilility dso_local.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 18 Jan 2018 02:08:23 +0000 (02:08 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 18 Jan 2018 02:08:23 +0000 (02:08 +0000)
commit9fbc040599588149d34048a81b73b9422a25f6a4
tree81b22f7b9eec3f941ea6f5c37f3f36d4c29d6f6f
parenta9346e050f301dfea9e1cf50d39a4b7180091b44
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
20 files changed:
llvm/include/llvm/IR/GlobalValue.h
llvm/lib/IR/AsmWriter.cpp
llvm/lib/IR/Verifier.cpp
llvm/test/Bitcode/dso_location.ll
llvm/test/Linker/funcimport.ll
llvm/test/Other/extract.ll
llvm/test/ThinLTO/X86/export.ll
llvm/test/ThinLTO/X86/funcimport.ll
llvm/test/ThinLTO/X86/local_name_conflict.ll
llvm/test/ThinLTO/X86/referenced_by_constant.ll
llvm/test/Transforms/FunctionImport/funcimport.ll
llvm/test/Transforms/ThinLTOBitcodeWriter/comdat.ll
llvm/test/Transforms/ThinLTOBitcodeWriter/split-internal1.ll
llvm/test/Transforms/ThinLTOBitcodeWriter/split-internal2.ll
llvm/test/Transforms/ThinLTOBitcodeWriter/split-vfunc-internal.ll
llvm/test/Transforms/WholeProgramDevirt/export-single-impl.ll
llvm/test/tools/gold/X86/emit-llvm.ll
llvm/test/tools/gold/X86/thinlto_linkonceresolution.ll
llvm/test/tools/llvm-split/internal.ll
llvm/test/tools/llvm-split/unnamed.ll