]> granicus.if.org Git - clang/commit
CodeGen: Assign an appropriate comdat to thunks.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 30 Jun 2015 19:07:26 +0000 (19:07 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 30 Jun 2015 19:07:26 +0000 (19:07 +0000)
commit32509e78989f790b2c29f8f6e3112a671ce32eb0
tree06299f3b4926f9986ab099abf2cca37c7b8cafa7
parent9a2d521b08895a82f66f002321f8a009bf2089bb
CodeGen: Assign an appropriate comdat to thunks.

Previously we were not assigning a comdat to thunks in the Microsoft ABI,
which would have required us to emit these functions outside of a comdat.
(Due to an inconsistency in how we were emitting objects, we were getting this
right most of the time, but only when compiling with function sections.) This
code generator change causes us to create a comdat for each thunk.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241102 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGVTables.cpp
test/CodeGenCXX/microsoft-abi-thunks.cpp