COFF: Let globals with private linkage reside in their own section
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 17 Mar 2015 23:54:51 +0000 (23:54 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 17 Mar 2015 23:54:51 +0000 (23:54 +0000)
commit7605cdd6e4926a0f0f15ebb81e21f41b8a378488
tree152bd56c21036db6a42f99c16a194aa9e822e1b8
parent11f53b7797f7dd2c1f7930c7b5a4ae8a74b3f7f3
COFF: Let globals with private linkage reside in their own section

COFF COMDATs (for selection kinds other than 'select any') require at
least one non-section symbol in the symbol table.
Satisfy this by morally enhancing the linkage from private to internal.

Differential Revision: http://reviews.llvm.org/D8394

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232570 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
include/llvm/IR/DataLayout.h
include/llvm/Target/TargetLoweringObjectFile.h
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
lib/IR/DataLayout.cpp
lib/Target/TargetLoweringObjectFile.cpp
lib/Target/TargetMachine.cpp
test/CodeGen/ARM/Windows/long-calls.ll
test/CodeGen/X86/fastcall-correct-mangling.ll
test/CodeGen/X86/global-sections.ll