]> granicus.if.org Git - clang/commit
Don't dllimport inline functions when targeting MinGW (PR21366)
authorHans Wennborg <hans@hanshq.net>
Mon, 3 Nov 2014 14:24:45 +0000 (14:24 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 3 Nov 2014 14:24:45 +0000 (14:24 +0000)
commit956edcd5d506674e57a2051a31ad6c9853fc6769
tree4e8d5a9cfc7abfe5b62b4da09c736616e866cfe3
parentd1bd62a32b74f3e6eda2d437a92b6244ebc56600
Don't dllimport inline functions when targeting MinGW (PR21366)

It turns out that MinGW never dllimports of exports inline functions.
This means that code compiled with Clang would fail to link with
MinGW-compiled libraries since we might try to import functions that
are not imported.

To fix this, make Clang never dllimport inline functions when targeting
MinGW.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221154 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/CodeGen/CodeGenModule.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaDeclCXX.cpp
test/CodeGen/dllimport.c
test/CodeGenCXX/dllexport.cpp
test/CodeGenCXX/dllimport-members.cpp
test/CodeGenCXX/dllimport.cpp
test/Sema/dllimport.c
test/SemaCXX/dllimport.cpp