[llvm] [NFC][CodingStandard] Adjust the ordering of dependency libraries. (PR #115254)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 6 19:20:08 PST 2024


https://github.com/illionj created https://github.com/llvm/llvm-project/pull/115254

Adjust the ordering of dependency libraries according to classic Unix linkers rules.

>From 202fc9dc440b4ee7e5f5419cc365e427c0b16c5d Mon Sep 17 00:00:00 2001
From: illoj <q463387135 at gmail.com>
Date: Thu, 7 Nov 2024 11:01:31 +0800
Subject: [PATCH] [NFC][CodingStandard] Adjust the ordering of dependency
 libraries.

Adjust the ordering of dependency libraries according to classic Unix linkers rules.
---
 llvm/docs/CodingStandards.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/docs/CodingStandards.rst b/llvm/docs/CodingStandards.rst
index 6e90efe0f11197..e0e274c19df0be 100644
--- a/llvm/docs/CodingStandards.rst
+++ b/llvm/docs/CodingStandards.rst
@@ -816,7 +816,7 @@ whether a Unix linker would succeed at linking the program if all inline
 functions were defined out-of-line. (& for all valid orderings of dependencies
 - since linking resolution is linear, it's possible that some implicit
 dependencies can sneak through: A depends on B and C, so valid orderings are
-"C B A" or "B C A", in both cases the explicit dependencies come before their
+"A B C" or "A C B", in both cases the explicit dependencies come before their
 use. But in the first case, B could still link successfully if it implicitly
 depended on C, or the opposite in the second case)
 



More information about the llvm-commits mailing list