Start setting dso_local for COFF.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 23 Feb 2018 15:32:32 +0000 (15:32 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 23 Feb 2018 15:32:32 +0000 (15:32 +0000)
commit004d240b6a8f06227f0e819c15e949ffc5fbd7c2
tree54f15eacbda38c0b41ee6f45afe09b1db1548ab7
parent504d23551ee0b995b93f3177fa1728217abcfb53
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: 325915
147 files changed:
clang/lib/CodeGen/CGDecl.cpp
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/CodeGenModule.h
clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/test/CodeGen/aarch64-varargs-ms.c
clang/test/CodeGen/attr-x86-interrupt.c
clang/test/CodeGen/blocks-windows.c
clang/test/CodeGen/builtins-ms.c
clang/test/CodeGen/builtins-overflow.c
clang/test/CodeGen/c-strings.c
clang/test/CodeGen/cfi-icall-cross-dso.c
clang/test/CodeGen/cfi-icall.c
clang/test/CodeGen/cfstring-windows.c
clang/test/CodeGen/dllexport.c
clang/test/CodeGen/dllimport.c
clang/test/CodeGen/dso-local-executable.c
clang/test/CodeGen/exceptions-seh-finally.c
clang/test/CodeGen/exceptions-seh-leave.c
clang/test/CodeGen/exceptions-seh.c
clang/test/CodeGen/inline.c
clang/test/CodeGen/mangle-ms.c
clang/test/CodeGen/mangle-windows-rtd.c
clang/test/CodeGen/mangle-windows.c
clang/test/CodeGen/microsoft-call-conv-x64.c
clang/test/CodeGen/mingw-long-double.c
clang/test/CodeGen/ms-align-tentative.c
clang/test/CodeGen/ms-annotation.c
clang/test/CodeGen/ms-barriers-intrinsics.c
clang/test/CodeGen/ms-declspecs.c
clang/test/CodeGen/ms-declspecs.cpp
clang/test/CodeGen/ms-inline-asm-align.c
clang/test/CodeGen/ms-inline-asm-avx512.c
clang/test/CodeGen/ms-intrinsics.c
clang/test/CodeGen/ms-setjmp.c
clang/test/CodeGen/ms-x86-intrinsics.c
clang/test/CodeGen/ms_abi.c
clang/test/CodeGen/ms_abi_aarch64.c
clang/test/CodeGen/ms_this.cpp
clang/test/CodeGen/preserve-call-conv.c
clang/test/CodeGen/regcall.c
clang/test/CodeGen/variadic-null-win64.c
clang/test/CodeGen/vectorcall.c
clang/test/CodeGen/windows-itanium.c
clang/test/CodeGen/windows-on-arm-dllimport-dllexport.c
clang/test/CodeGen/windows-struct-abi.c
clang/test/CodeGen/windows-swiftcall.c
clang/test/CodeGen/x86_32-arguments-win32.c
clang/test/CodeGen/x86_32-fpcc-struct-return.c
clang/test/CodeGen/x86_64-arguments-win32.c
clang/test/CodeGenCXX/PR19955.cpp
clang/test/CodeGenCXX/atomic-dllexport.cpp
clang/test/CodeGenCXX/attr-x86-interrupt.cpp
clang/test/CodeGenCXX/constructor-destructor-return-this.cpp
clang/test/CodeGenCXX/dllexport-alias.cpp
clang/test/CodeGenCXX/dllexport-ctor-closure.cpp
clang/test/CodeGenCXX/dllexport-dtor-thunks.cpp
clang/test/CodeGenCXX/dllexport-members.cpp
clang/test/CodeGenCXX/dllexport-ms-friend.cpp
clang/test/CodeGenCXX/dllexport-pr26549.cpp
clang/test/CodeGenCXX/dllexport-vtable-thunks.cpp
clang/test/CodeGenCXX/dllexport.cpp
clang/test/CodeGenCXX/dllimport-dtor-thunks.cpp
clang/test/CodeGenCXX/dllimport-members.cpp
clang/test/CodeGenCXX/dllimport-memptr-global.cpp
clang/test/CodeGenCXX/dllimport-rtti.cpp
clang/test/CodeGenCXX/dllimport.cpp
clang/test/CodeGenCXX/exceptions-cxx-ehsc.cpp
clang/test/CodeGenCXX/exceptions-cxx-new.cpp
clang/test/CodeGenCXX/exceptions-seh-filter-captures.cpp
clang/test/CodeGenCXX/exceptions-seh.cpp
clang/test/CodeGenCXX/explicit-instantiation.cpp
clang/test/CodeGenCXX/homogeneous-aggregates.cpp
clang/test/CodeGenCXX/initializer-list-ctor-order.cpp
clang/test/CodeGenCXX/inline-dllexport-member.cpp
clang/test/CodeGenCXX/inline-functions.cpp
clang/test/CodeGenCXX/mangle-ms-cxx11.cpp
clang/test/CodeGenCXX/mangle-ms-md5.cpp
clang/test/CodeGenCXX/mangle-ms-templates-memptrs-2.cpp
clang/test/CodeGenCXX/mangle-ms-vector-types.cpp
clang/test/CodeGenCXX/mangle-ms.cpp
clang/test/CodeGenCXX/mangle-windows.cpp
clang/test/CodeGenCXX/member-function-pointer-calls.cpp
clang/test/CodeGenCXX/microsoft-abi-arg-order.cpp
clang/test/CodeGenCXX/microsoft-abi-array-cookies.cpp
clang/test/CodeGenCXX/microsoft-abi-byval-sret.cpp
clang/test/CodeGenCXX/microsoft-abi-byval-thunks.cpp
clang/test/CodeGenCXX/microsoft-abi-byval-vararg.cpp
clang/test/CodeGenCXX/microsoft-abi-cdecl-method-sret.cpp
clang/test/CodeGenCXX/microsoft-abi-constexpr-vs-inheritance.cpp
clang/test/CodeGenCXX/microsoft-abi-default-cc.cpp
clang/test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp
clang/test/CodeGenCXX/microsoft-abi-eh-catch.cpp
clang/test/CodeGenCXX/microsoft-abi-eh-cleanups.cpp
clang/test/CodeGenCXX/microsoft-abi-eh-inlineasm.cpp
clang/test/CodeGenCXX/microsoft-abi-eh-terminate.cpp
clang/test/CodeGenCXX/microsoft-abi-extern-template.cpp
clang/test/CodeGenCXX/microsoft-abi-member-pointers.cpp
clang/test/CodeGenCXX/microsoft-abi-methods.cpp
clang/test/CodeGenCXX/microsoft-abi-multiple-nonvirtual-inheritance.cpp
clang/test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp
clang/test/CodeGenCXX/microsoft-abi-static-initializers.cpp
clang/test/CodeGenCXX/microsoft-abi-structors-alias.cpp
clang/test/CodeGenCXX/microsoft-abi-structors.cpp
clang/test/CodeGenCXX/microsoft-abi-thread-safe-statics.cpp
clang/test/CodeGenCXX/microsoft-abi-thunks.cpp
clang/test/CodeGenCXX/microsoft-abi-try-throw.cpp
clang/test/CodeGenCXX/microsoft-abi-typeid.cpp
clang/test/CodeGenCXX/microsoft-abi-virtual-inheritance-vtordisps.cpp
clang/test/CodeGenCXX/microsoft-abi-virtual-inheritance.cpp
clang/test/CodeGenCXX/microsoft-abi-virtual-member-pointers.cpp
clang/test/CodeGenCXX/microsoft-abi-vmemptr-conflicts.cpp
clang/test/CodeGenCXX/microsoft-abi-vmemptr-vbase.cpp
clang/test/CodeGenCXX/microsoft-abi-vtables-multiple-nonvirtual-inheritance-this-adjustment.cpp
clang/test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance.cpp
clang/test/CodeGenCXX/microsoft-compatibility.cpp
clang/test/CodeGenCXX/microsoft-inaccessible-base.cpp
clang/test/CodeGenCXX/microsoft-interface.cpp
clang/test/CodeGenCXX/mingw-new-abi.cpp
clang/test/CodeGenCXX/mingw-w64-seh-exceptions.cpp
clang/test/CodeGenCXX/ms-eh-personality.cpp
clang/test/CodeGenCXX/ms-inline-asm-return.cpp
clang/test/CodeGenCXX/ms-integer-static-data-members-exported.cpp
clang/test/CodeGenCXX/ms-integer-static-data-members.cpp
clang/test/CodeGenCXX/ms-property.cpp
clang/test/CodeGenCXX/ms-thread_local.cpp
clang/test/CodeGenCXX/naked.cpp
clang/test/CodeGenCXX/pr20897.cpp
clang/test/CodeGenCXX/pr27030.cpp
clang/test/CodeGenCXX/pr28360.cpp
clang/test/CodeGenCXX/pr30731.cpp
clang/test/CodeGenCXX/pragma-init_seg.cpp
clang/test/CodeGenCXX/regcall.cpp
clang/test/CodeGenCXX/rtti-mingw64.cpp
clang/test/CodeGenCXX/runtime-dllstorage.cpp
clang/test/CodeGenCXX/sections.cpp
clang/test/CodeGenCXX/type-metadata.cpp
clang/test/CodeGenCXX/ubsan-vtable-checks.cpp
clang/test/CodeGenCXX/uncopyable-args.cpp
clang/test/CodeGenCXX/vararg-non-pod-ms-compat.cpp
clang/test/CodeGenCXX/vtable-assume-load.cpp
clang/test/CodeGenCXX/vtable-key-function-ios.cpp
clang/test/CodeGenCXX/vtable-key-function-win-comdat.cpp
clang/test/CodeGenCXX/windows-itanium-type-info.cpp
clang/test/CodeGenCoroutines/coro-promise-dtor.cpp
clang/test/CodeGenObjCXX/microsoft-abi-arc-param-order.mm
clang/test/CodeGenObjCXX/msabi-objc-types.mm
clang/test/PCH/uses-seh.cpp