diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2018-03-24 00:35:11 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2018-03-24 00:35:11 +0000 |
| commit | 4f058a2c6b2b412ce7f32e4bc5bab89b31593091 (patch) | |
| tree | eff4040584051642dea4bdaa8990d4293a75743d /lld/ELF/MapFile.cpp | |
| parent | d37c33aff2c651ba722f69a8bebe66ff8025013a (diff) | |
Add a SectionBase::getVA helper. NFC.
There were a few too many places duplicating this.
llvm-svn: 328402
Diffstat (limited to 'lld/ELF/MapFile.cpp')
| -rw-r--r-- | lld/ELF/MapFile.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/MapFile.cpp b/lld/ELF/MapFile.cpp index 819f1317acab..f5dcec8613cc 100644 --- a/lld/ELF/MapFile.cpp +++ b/lld/ELF/MapFile.cpp @@ -185,8 +185,7 @@ void elf::writeMapFile() { continue; } - writeHeader(OS, OSec->Addr + IS->OutSecOff, IS->getSize(), - IS->Alignment); + writeHeader(OS, IS->getVA(0), IS->getSize(), IS->Alignment); OS << Indent8 << toString(IS) << '\n'; for (Symbol *Sym : SectionSyms[IS]) OS << SymStr[Sym] << '\n'; |
