summaryrefslogtreecommitdiffstats
path: root/lld/ELF/OutputSections.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2018-01-30 16:20:08 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2018-01-30 16:20:08 +0000
commit22d533568bf70d533d67dfcddb6951732c9c8671 (patch)
tree4f9360ccba8c09f980b8377a091551f7a09768d4 /lld/ELF/OutputSections.cpp
parent1f59ae311bc234f718624d72483152e9b1e160b3 (diff)
downloadbcm5719-llvm-22d533568bf70d533d67dfcddb6951732c9c8671.tar.gz
bcm5719-llvm-22d533568bf70d533d67dfcddb6951732c9c8671.zip
Sort orphan section if --symbol-ordering-file is given.
Before this patch orphan sections were not sorted. llvm-svn: 323779
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
-rw-r--r--lld/ELF/OutputSections.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index 94c98284196..75df1c254f9 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -134,8 +134,8 @@ void OutputSection::addSection(InputSection *IS) {
}
}
-void elf::sortByOrder(MutableArrayRef<InputSection *> In,
- std::function<int(InputSectionBase *S)> Order) {
+static void sortByOrder(MutableArrayRef<InputSection *> In,
+ std::function<int(InputSectionBase *S)> Order) {
typedef std::pair<int, InputSection *> Pair;
auto Comp = [](const Pair &A, const Pair &B) { return A.first < B.first; };
OpenPOWER on IntegriCloud