File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -1518,13 +1518,11 @@ class opt
1518
1518
[](const typename ParserClass::parser_data_type &) {};
1519
1519
};
1520
1520
1521
- #if !defined(LLVM_ENABLE_LLVM_EXPORT_ANNOTATIONS) || \
1522
- !(defined(_MSC_VER) && !defined(__clang__))
1523
- // Only instantiate opt<std::string> when not building a Windows DLL with MSVC.
1524
- // When exporting opt<std::string>, MSVC cl implicitly exports symbols for
1521
+ #if !(defined(LLVM_ENABLE_LLVM_EXPORT_ANNOTATIONS) && defined(_MSC_VER))
1522
+ // Only instantiate opt<std::string> when not building a Windows DLL. When
1523
+ // exporting opt<std::string>, MSVC implicitly exports symbols for
1525
1524
// std::basic_string through transitive inheritance via std::string. These
1526
- // symbols may appear in other TUs with different linkage, leading to duplicate
1527
- // symbol conflicts.
1525
+ // symbols may appear in clients, leading to duplicate symbol conflicts.
1528
1526
extern template class LLVM_TEMPLATE_ABI opt<std::string>;
1529
1527
#endif
1530
1528
Original file line number Diff line number Diff line change @@ -68,13 +68,11 @@ template class LLVM_EXPORT_TEMPLATE basic_parser<float>;
68
68
template class LLVM_EXPORT_TEMPLATE basic_parser<std::string>;
69
69
template class LLVM_EXPORT_TEMPLATE basic_parser<char >;
70
70
71
- #if !defined(LLVM_ENABLE_LLVM_EXPORT_ANNOTATIONS) || \
72
- !(defined(_MSC_VER) && !defined(__clang__))
73
- // Only instantiate opt<std::string> when not building a Windows DLL with MSVC.
74
- // When exporting opt<std::string>, MSVC cl implicitly exports symbols for
71
+ #if !(defined(LLVM_ENABLE_LLVM_EXPORT_ANNOTATIONS) && defined(_MSC_VER))
72
+ // Only instantiate opt<std::string> when not building a Windows DLL. When
73
+ // exporting opt<std::string>, MSVC implicitly exports symbols for
75
74
// std::basic_string through transitive inheritance via std::string. These
76
- // symbols may appear in other TUs with different linkage, leading to duplicate
77
- // symbol conflicts.
75
+ // symbols may appear in clients, leading to duplicate symbol conflicts.
78
76
template class LLVM_EXPORT_TEMPLATE opt<std::string>;
79
77
#endif
80
78
You can’t perform that action at this time.
0 commit comments