summaryrefslogtreecommitdiffstats
path: root/lld/ELF/MapFile.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-02-23 02:28:28 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-02-23 02:28:28 +0000
commitb4c9b81aadd03e35c6467aece70687b4009b446f (patch)
tree067d366b5893769637fe3ebbd4ca7e66b7e94ff4 /lld/ELF/MapFile.cpp
parentefe5d5fe9d7f3c774748af7db1e484719b007fbf (diff)
downloadbcm5719-llvm-b4c9b81aadd03e35c6467aece70687b4009b446f.tar.gz
bcm5719-llvm-b4c9b81aadd03e35c6467aece70687b4009b446f.zip
Convert InputSectionBase to a class.
Removing this template is not a big win by itself, but opens the way for removing more templates. llvm-svn: 295923
Diffstat (limited to 'lld/ELF/MapFile.cpp')
-rw-r--r--lld/ELF/MapFile.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lld/ELF/MapFile.cpp b/lld/ELF/MapFile.cpp
index 84a869a4aa2..c341049fb68 100644
--- a/lld/ELF/MapFile.cpp
+++ b/lld/ELF/MapFile.cpp
@@ -66,17 +66,17 @@ static void writeInputSection(raw_fd_ostream &OS, const InputSection<ELFT> *IS,
int Width = ELFT::Is64Bits ? 16 : 8;
StringRef Name = IS->Name;
if (Name != PrevName) {
- writeInSecLine(OS, Width, IS->OutSec->Addr + IS->OutSecOff, IS->getSize(),
- IS->Alignment, Name);
+ writeInSecLine(OS, Width, IS->OutSec->Addr + IS->OutSecOff,
+ IS->template getSize<ELFT>(), IS->Alignment, Name);
OS << '\n';
PrevName = Name;
}
- elf::ObjectFile<ELFT> *File = IS->getFile();
+ elf::ObjectFile<ELFT> *File = IS->template getFile<ELFT>();
if (!File)
return;
- writeFileLine(OS, Width, IS->OutSec->Addr + IS->OutSecOff, IS->getSize(),
- IS->Alignment, toString(File));
+ writeFileLine(OS, Width, IS->OutSec->Addr + IS->OutSecOff,
+ IS->template getSize<ELFT>(), IS->Alignment, toString(File));
OS << '\n';
for (SymbolBody *Sym : File->getSymbols()) {
OpenPOWER on IntegriCloud