diff options
| author | Rui Ueyama <ruiu@google.com> | 2017-04-28 17:50:23 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2017-04-28 17:50:23 +0000 |
| commit | 2634d0ff5cac4ca98e1737daeb1326fca1c30a40 (patch) | |
| tree | 617316eb949ee14668816c54f9f54670ff7d2e65 | |
| parent | ba124f9e42e544e77adf82ead1f0407dbd07c7d1 (diff) | |
| download | bcm5719-llvm-2634d0ff5cac4ca98e1737daeb1326fca1c30a40.tar.gz bcm5719-llvm-2634d0ff5cac4ca98e1737daeb1326fca1c30a40.zip | |
Remove a redundant local variable.
llvm-svn: 301661
| -rw-r--r-- | lld/ELF/MapFile.cpp | 7 |
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. |

