summaryrefslogtreecommitdiffstats
path: root/lld/ELF/MapFile.cpp
diff options
context:
space:
mode:
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