diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-02-23 16:49:07 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-02-23 16:49:07 +0000 |
| commit | 774ea7d0a945cd328ac31526d3daa212116131bb (patch) | |
| tree | 716ab9e088d63642499259ef11ba8889a7dc0c47 /lld/ELF/MapFile.cpp | |
| parent | 68e4cb3c86021541b768836a2ed0976f3dd99dde (diff) | |
| download | bcm5719-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.cpp | 6 |
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); }); } } |

