]> granicus.if.org Git - clang/commit
CodeGen: fix windows itanium RTTI in EH mode
authorSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 5 Dec 2016 22:40:20 +0000 (22:40 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 5 Dec 2016 22:40:20 +0000 (22:40 +0000)
commite2bb4a633867c755943baa69ffa20ccef36045d0
tree6df01fbb68dace49f511a91cec7226b83f35c8c7
parentbd6b03c8adbac57bdcdfcc9bbf4f6cf29679969c
CodeGen: fix windows itanium RTTI in EH mode

When emitting RTTI for EH only, we would mark the locally defined (LinkOnceODR)
RTTI definition as dllimport, which is incorrect.  Ensure that if we are
generating the type information for EH only, it is marked as LinkOnceODR and we
do not make it dllimport.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288721 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ItaniumCXXABI.cpp
test/CodeGenCXX/windows-itanium-type-info.cpp