diff --git a/tamer/src/asg/graph.rs b/tamer/src/asg/graph.rs index 129393b6..32c260d1 100644 --- a/tamer/src/asg/graph.rs +++ b/tamer/src/asg/graph.rs @@ -87,9 +87,8 @@ type Ix = global::ProgSymSize; /// For more information, /// see the [module-level documentation][self]. pub struct Asg { - // TODO: private; see `ld::xmle::lower`. /// Directed graph on which objects are stored. - pub graph: DiGraph, + graph: DiGraph, /// Edge cache of [`SymbolId`][crate::sym::SymbolId] to /// [`ObjectIndex`]es. diff --git a/tamer/src/ld/xmle/lower.rs b/tamer/src/ld/xmle/lower.rs index caf5a9dc..edb05da7 100644 --- a/tamer/src/ld/xmle/lower.rs +++ b/tamer/src/ld/xmle/lower.rs @@ -36,9 +36,7 @@ pub type SortResult = Result; /// Lower ASG into [`XmleSections`] by ordering relocatable text fragments. /// -/// This performs the equivalent of a topological sort, -/// although function cycles are permitted. -/// The actual operation performed is a post-order depth-first traversal. +/// The topological sort is performed by [`topo_sort`]. pub fn sort<'a, S: XmleSections<'a>>(asg: &'a Asg, mut dest: S) -> SortResult where S: XmleSections<'a>,