Author: Hans Wennborg Date: 2021-12-08T11:15:39+01:00 New Revision: 0a54c325beff37c57991e88799c213534c1fa6a9
URL: https://github.com/llvm/llvm-project/commit/0a54c325beff37c57991e88799c213534c1fa6a9 DIFF: https://github.com/llvm/llvm-project/commit/0a54c325beff37c57991e88799c213534c1fa6a9.diff LOG: Add note about inlining dllimport functions to the attribute docs Differential revision: https://reviews.llvm.org/D115252 Added: Modified: clang/include/clang/Basic/AttrDocs.td Removed: ################################################################################ diff --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td index 10cce4c2d6898..b005284eb492e 100644 --- a/clang/include/clang/Basic/AttrDocs.td +++ b/clang/include/clang/Basic/AttrDocs.td @@ -187,6 +187,10 @@ primary use is for COFF object files which explicitly specify what interfaces are imported from external modules. See the dllimport_ documentation on MSDN for more information. +Note that a dllimport function may still be inlined, if its definition is +available and it doesn't reference any non-dllimport functions or global +variables. + .. _dllimport: https://msdn.microsoft.com/en-us/library/3y1sfaz2.aspx }]; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits