[lld] r190612 - [lld][LayoutPass] change comments to reflect the sort order

Shankar Easwaran shankare at codeaurora.org
Thu Sep 12 08:59:34 PDT 2013


Author: shankare
Date: Thu Sep 12 10:59:34 2013
New Revision: 190612

URL: http://llvm.org/viewvc/llvm-project?rev=190612&view=rev
Log:
[lld][LayoutPass] change comments to reflect the sort order

Modified:
    lld/trunk/lib/Passes/LayoutPass.cpp

Modified: lld/trunk/lib/Passes/LayoutPass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Passes/LayoutPass.cpp?rev=190612&r1=190611&r2=190612&view=diff
==============================================================================
--- lld/trunk/lib/Passes/LayoutPass.cpp (original)
+++ lld/trunk/lib/Passes/LayoutPass.cpp Thu Sep 12 10:59:34 2013
@@ -21,10 +21,11 @@
 using namespace lld;
 
 /// The function compares atoms by sorting atoms in the following order
-/// a) Sorts atoms with the same permissions
-/// b) Sorts atoms with the same content Type
-/// c) Sorts atoms by Section position preference
-/// d) Sorts atoms by how they follow / precede each atom
+/// a) Sorts atoms by Section position preference
+/// b) Sorts atoms by their ordinal overrides
+///    (layout-after/layout-before/ingroup)
+/// c) Sorts atoms by their permissions
+/// d) Sorts atoms by their content
 /// e) Sorts atoms on how they appear using File Ordinality
 /// f) Sorts atoms on how they appear within the File
 bool LayoutPass::CompareAtoms::operator()(const DefinedAtom *left,





More information about the llvm-commits mailing list