[lld] f23d57a - [lld-macho] Rename CallGraphSort.{h, cpp} to SectionPriorities
Leonard Grey via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 25 09:16:33 PST 2022
Author: Leonard Grey
Date: 2022-01-25T12:15:14-05:00
New Revision: f23d57a63266354902f36b79f2ad8557e201b3bc
URL: https://github.com/llvm/llvm-project/commit/f23d57a63266354902f36b79f2ad8557e201b3bc
DIFF: https://github.com/llvm/llvm-project/commit/f23d57a63266354902f36b79f2ad8557e201b3bc.diff
LOG: [lld-macho] Rename CallGraphSort.{h,cpp} to SectionPriorities
This is in preparation for moving the code that parses and processes
order files into this file.
See https://reviews.llvm.org/D117354 for context and discussion.
Added:
lld/MachO/SectionPriorities.cpp
lld/MachO/SectionPriorities.h
Modified:
lld/MachO/CMakeLists.txt
lld/MachO/Writer.cpp
llvm/utils/gn/secondary/lld/MachO/BUILD.gn
Removed:
lld/MachO/CallGraphSort.cpp
lld/MachO/CallGraphSort.h
################################################################################
diff --git a/lld/MachO/CMakeLists.txt b/lld/MachO/CMakeLists.txt
index 61f5c70005b9f..4bd0816bca66f 100644
--- a/lld/MachO/CMakeLists.txt
+++ b/lld/MachO/CMakeLists.txt
@@ -10,7 +10,6 @@ add_lld_library(lldMachO
Arch/ARM64Common.cpp
Arch/ARM64_32.cpp
Arch/X86_64.cpp
- CallGraphSort.cpp
ConcatOutputSection.cpp
Driver.cpp
DriverUtils.cpp
@@ -26,6 +25,7 @@ add_lld_library(lldMachO
OutputSection.cpp
OutputSegment.cpp
Relocations.cpp
+ SectionPriorities.cpp
SymbolTable.cpp
Symbols.cpp
SyntheticSections.cpp
diff --git a/lld/MachO/CallGraphSort.cpp b/lld/MachO/SectionPriorities.cpp
similarity index 98%
rename from lld/MachO/CallGraphSort.cpp
rename to lld/MachO/SectionPriorities.cpp
index 7a0192ea691e0..5e63ceb34d110 100644
--- a/lld/MachO/CallGraphSort.cpp
+++ b/lld/MachO/SectionPriorities.cpp
@@ -1,4 +1,4 @@
-//===- CallGraphSort.cpp --------------------------------------------------===//
+//===- SectionPriorities.cpp ----------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -11,7 +11,7 @@
///
//===----------------------------------------------------------------------===//
-#include "CallGraphSort.h"
+#include "SectionPriorities.h"
#include "Config.h"
#include "InputFiles.h"
#include "Symbols.h"
diff --git a/lld/MachO/CallGraphSort.h b/lld/MachO/SectionPriorities.h
similarity index 78%
rename from lld/MachO/CallGraphSort.h
rename to lld/MachO/SectionPriorities.h
index 034f54a260899..f510d315e2c45 100644
--- a/lld/MachO/CallGraphSort.h
+++ b/lld/MachO/SectionPriorities.h
@@ -1,4 +1,4 @@
-//===- CallGraphSort.h ------------------------------------------*- C++ -*-===//
+//===- SectionPriorities.h --------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef LLD_MACHO_CALL_GRAPH_SORT_H
-#define LLD_MACHO_CALL_GRAPH_SORT_H
+#ifndef LLD_MACHO_SECTION_PRIORITIES_H
+#define LLD_MACHO_SECTION_PRIORITIES_H
#include "InputSection.h"
#include "llvm/ADT/DenseMap.h"
diff --git a/lld/MachO/Writer.cpp b/lld/MachO/Writer.cpp
index c76dc691346e6..1fafda99e39d2 100644
--- a/lld/MachO/Writer.cpp
+++ b/lld/MachO/Writer.cpp
@@ -7,7 +7,6 @@
//===----------------------------------------------------------------------===//
#include "Writer.h"
-#include "CallGraphSort.h"
#include "ConcatOutputSection.h"
#include "Config.h"
#include "InputFiles.h"
@@ -15,6 +14,7 @@
#include "MapFile.h"
#include "OutputSection.h"
#include "OutputSegment.h"
+#include "SectionPriorities.h"
#include "SymbolTable.h"
#include "Symbols.h"
#include "SyntheticSections.h"
diff --git a/llvm/utils/gn/secondary/lld/MachO/BUILD.gn b/llvm/utils/gn/secondary/lld/MachO/BUILD.gn
index 4d8a050dcd8c6..6b457a97f9981 100644
--- a/llvm/utils/gn/secondary/lld/MachO/BUILD.gn
+++ b/llvm/utils/gn/secondary/lld/MachO/BUILD.gn
@@ -27,7 +27,6 @@ static_library("MachO") {
"Arch/ARM64Common.cpp",
"Arch/ARM64_32.cpp",
"Arch/X86_64.cpp",
- "CallGraphSort.cpp",
"ConcatOutputSection.cpp",
"Driver.cpp",
"DriverUtils.cpp",
@@ -43,6 +42,7 @@ static_library("MachO") {
"OutputSection.cpp",
"OutputSegment.cpp",
"Relocations.cpp",
+ "SectionPriorities.cpp",
"SymbolTable.cpp",
"Symbols.cpp",
"SyntheticSections.cpp",
More information about the llvm-commits
mailing list