summaryrefslogtreecommitdiffstats
path: root/lld/ELF/MapFile.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-02-23 16:49:07 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-02-23 16:49:07 +0000
commit774ea7d0a945cd328ac31526d3daa212116131bb (patch)
tree716ab9e088d63642499259ef11ba8889a7dc0c47 /lld/ELF/MapFile.cpp
parent68e4cb3c86021541b768836a2ed0976f3dd99dde (diff)
downloadbcm5719-llvm-774ea7d0a945cd328ac31526d3daa212116131bb.tar.gz
bcm5719-llvm-774ea7d0a945cd328ac31526d3daa212116131bb.zip
Make InputSection a class. NFC.
With the current design an InputSection is basically anything that goes directly in a OutputSection. That includes plain input section but also synthetic sections, so this should probably not be a template. llvm-svn: 295993
Diffstat (limited to 'lld/ELF/MapFile.cpp')
-rw-r--r--lld/ELF/MapFile.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/MapFile.cpp b/lld/ELF/MapFile.cpp
index 9f128f66f24..4e28fabfa04 100644
--- a/lld/ELF/MapFile.cpp
+++ b/lld/ELF/MapFile.cpp
@@ -61,7 +61,7 @@ static void writeSymbolLine(raw_fd_ostream &OS, int Width, uint64_t Address,
}
template <class ELFT>
-static void writeInputSection(raw_fd_ostream &OS, const InputSection<ELFT> *IS,
+static void writeInputSection(raw_fd_ostream &OS, const InputSection *IS,
StringRef &PrevName) {
int Width = ELFT::Is64Bits ? 16 : 8;
StringRef Name = IS->Name;
@@ -108,8 +108,8 @@ static void writeMapFile2(raw_fd_ostream &OS,
StringRef PrevName = "";
Sec->forEachInputSection([&](InputSectionBase *S) {
- if (const auto *IS = dyn_cast<InputSection<ELFT>>(S))
- writeInputSection(OS, IS, PrevName);
+ if (const auto *IS = dyn_cast<InputSection>(S))
+ writeInputSection<ELFT>(OS, IS, PrevName);
});
}
}
OpenPOWER on IntegriCloud