diff options
Diffstat (limited to 'lld/ELF/CallGraphSort.cpp')
-rw-r--r-- | lld/ELF/CallGraphSort.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lld/ELF/CallGraphSort.cpp b/lld/ELF/CallGraphSort.cpp index 6dad7c965f1a..21c641b5161f 100644 --- a/lld/ELF/CallGraphSort.cpp +++ b/lld/ELF/CallGraphSort.cpp @@ -48,9 +48,8 @@ #include <numeric> using namespace llvm; - -namespace lld { -namespace elf { +using namespace lld; +using namespace lld::elf; namespace { struct Edge { @@ -263,11 +262,8 @@ DenseMap<const InputSectionBase *, int> CallGraphSort::run() { // Sort sections by the profile data provided by -callgraph-profile-file // // This first builds a call graph based on the profile data then merges sections -// according to the C³ huristic. All clusters are then sorted by a density +// according to the C³ heuristic. All clusters are then sorted by a density // metric to further improve locality. -DenseMap<const InputSectionBase *, int> computeCallGraphProfileOrder() { +DenseMap<const InputSectionBase *, int> elf::computeCallGraphProfileOrder() { return CallGraphSort().run(); } - -} // namespace elf -} // namespace lld |