diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2018-03-15 21:13:46 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2018-03-15 21:13:46 +0000 |
commit | 435b0991156363022223e8ff480fbb66b6bb257d (patch) | |
tree | 27eef06a37bcda2ec8dea823dcb988a22f6824b1 /lld/COFF/MapFile.cpp | |
parent | 03028f327b65ff47dd046ad62310bf03b11e70fb (diff) | |
download | llvm-435b0991156363022223e8ff480fbb66b6bb257d.tar.gz |
COFF: Move assignment of section RVAs to assignAddresses(). NFCI.
This makes the design a little more similar to the ELF linker and
should allow for features such as ARM range extension thunks to be
implemented more easily.
Differential Revision: https://reviews.llvm.org/D44501
llvm-svn: 327667
Diffstat (limited to 'lld/COFF/MapFile.cpp')
-rw-r--r-- | lld/COFF/MapFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/COFF/MapFile.cpp b/lld/COFF/MapFile.cpp index b5aec6cfa901..6ca1b6647bd7 100644 --- a/lld/COFF/MapFile.cpp +++ b/lld/COFF/MapFile.cpp @@ -108,7 +108,7 @@ void coff::writeMapFile(ArrayRef<OutputSection *> OutputSections) { // Print out file contents. for (OutputSection *Sec : OutputSections) { writeHeader(OS, Sec->getRVA(), Sec->getVirtualSize(), /*Align=*/PageSize); - OS << Sec->getName() << '\n'; + OS << Sec->Name << '\n'; for (Chunk *C : Sec->getChunks()) { auto *SC = dyn_cast<SectionChunk>(C); |