diff options
author | Martin Storsjo <martin@martin.st> | 2019-04-26 19:31:51 +0000 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2019-04-26 19:31:51 +0000 |
commit | 228ccd675484038df21d68b8178bbd56a00be56a (patch) | |
tree | 778d3da34ec6afc513c02328e7988e3856ded850 /clang/lib | |
parent | 3820506960e058b04078e8301404474164fb2628 (diff) | |
download | bcm5719-llvm-228ccd675484038df21d68b8178bbd56a00be56a.tar.gz bcm5719-llvm-228ccd675484038df21d68b8178bbd56a00be56a.zip |
[MinGW] Always emit local typeinfo
This makes sure that code built with headers for a statically linked
libc++ also works when linking to the DLL version, when the DLL
hasn't been built with --export-all-symbols.
This matches what GCC for MinGW does for this test case.
Differential Revision: https://reviews.llvm.org/D61177
llvm-svn: 359345
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/ItaniumCXXABI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/ItaniumCXXABI.cpp b/clang/lib/CodeGen/ItaniumCXXABI.cpp index f28183f7b31..136504e608c 100644 --- a/clang/lib/CodeGen/ItaniumCXXABI.cpp +++ b/clang/lib/CodeGen/ItaniumCXXABI.cpp @@ -2959,7 +2959,7 @@ static bool ShouldUseExternalRTTIDescriptor(CodeGenModule &CGM, bool IsDLLImport = RD->hasAttr<DLLImportAttr>(); // Don't import the RTTI but emit it locally. - if (CGM.getTriple().isWindowsGNUEnvironment() && IsDLLImport) + if (CGM.getTriple().isWindowsGNUEnvironment()) return false; if (CGM.getVTables().isVTableExternal(RD)) |