Skip to content

Commit e5c8e4e

Browse files
committed
[llvm] remove LLVM_ABI_FRIEND documentation
1 parent d385dc2 commit e5c8e4e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/docs/InterfaceExportAnnotations.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ method in a C++ class, it may be annotated for export.
222222
Friend Functions
223223
~~~~~~~~~~~~~~~~
224224
Friend functions declared in a class, struct or union must be annotated with
225-
``LLVM_ABI_FRIEND`` if the corresponding function declaration is annotated with
225+
``LLVM_ABI`` if the corresponding function declaration is annotated with
226226
``LLVM_ABI``. This requirement applies even when the class containing the friend
227227
declaration is annotated with ``LLVM_ABI``.
228228

@@ -236,14 +236,13 @@ declaration is annotated with ``LLVM_ABI``.
236236
class ExampleClass {
237237
// Friend declaration of a function must be annotated the same as the actual
238238
// function declaration.
239-
LLVM_ABI_FRIEND friend int friend_function(ExampleClass &obj);
239+
LLVM_ABI friend int friend_function(ExampleClass &obj);
240240
};
241241
242242
.. note::
243243

244244
Annotating the friend declaration avoids an “inconsistent dll linkage”
245-
compiler error when building a DLL for Windows. The ``LLVM_ABI_FRIEND``
246-
annotation is a no-op when building ELF or Mach-O shared libraries.
245+
compiler error when building a DLL for Windows.
247246

248247
Virtual Table and Type Info
249248
~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)