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.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lld/ELF/MapFile.cpp b/lld/ELF/MapFile.cpp
index 7cf328da593..7720ea86a69 100644
--- a/lld/ELF/MapFile.cpp
+++ b/lld/ELF/MapFile.cpp
@@ -117,12 +117,11 @@ void PrettyPrinter<ELFT>::writeInputSection(raw_ostream &OS,
// 00201000 0000000e 4 test.o
//
// once for each new input section.
- StringRef Name = IS->Name;
- if (Name != CurSection) {
+ if (IS->Name != CurSection) {
writeHeader<ELFT>(OS, IS->OutSec->Addr + IS->OutSecOff, IS->getSize(),
IS->Alignment);
- OS << indent(1) << left_justify(Name, 7) << '\n';
- CurSection = Name;
+ OS << indent(1) << left_justify(IS->Name, 7) << '\n';
+ CurSection = IS->Name;
}
// Write a line for each symbol defined in the given section.
OpenPOWER on IntegriCloud