Skip to content

Commit e9d5a9b

Browse files
fsfodvgvassilev
authored andcommitted
Add a comment explaining LLVM_ABI_EXPORT
1 parent b603ef1 commit e9d5a9b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/include/llvm/Support/Compiler.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@
153153
/// exported when llvm is built as a shared library with everything else that is
154154
/// unannotated will have internal visibility.
155155
///
156+
/// LLVM_ABI_EXPORT is for the special case for things like plugin symbol
157+
/// declarations or definitions where we don't want the macro to be switching
158+
/// between dllexport and dllimport on windows based on what codebase is being
159+
/// built, it will only be dllexport. For non windows platforms this macro
160+
/// behaves the same as LLVM_ABI.
161+
///
156162
/// LLVM_EXPORT_TEMPLATE is used on explicit template instantiations in source
157163
/// files that were declared extern in a header. This macro is only set as a
158164
/// compiler export attribute on windows, on other platforms it does nothing.

0 commit comments

Comments
 (0)