diff options
author | Rui Ueyama <ruiu@google.com> | 2017-01-15 01:11:47 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-01-15 01:11:47 +0000 |
commit | 483ffa33656cc7045bb620e5ccbcfd072eb55d00 (patch) | |
tree | f5ef1dd107258ede720a2378717a12c84494b0b8 /lld/ELF/MapFile.cpp | |
parent | 543731f96a4b202ece718ef9e703c7a813114f15 (diff) | |
download | bcm5719-llvm-483ffa33656cc7045bb620e5ccbcfd072eb55d00.tar.gz bcm5719-llvm-483ffa33656cc7045bb620e5ccbcfd072eb55d00.zip |
Simplify string output. NFC.
llvm-svn: 292042
Diffstat (limited to 'lld/ELF/MapFile.cpp')
-rw-r--r-- | lld/ELF/MapFile.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lld/ELF/MapFile.cpp b/lld/ELF/MapFile.cpp index 648baa9d241..9f7a6f39184 100644 --- a/lld/ELF/MapFile.cpp +++ b/lld/ELF/MapFile.cpp @@ -35,8 +35,7 @@ using namespace lld::elf; static void writeOutSecLine(raw_fd_ostream &OS, int Width, uint64_t Address, uint64_t Size, uint64_t Align, StringRef Name) { - OS << format_hex_no_prefix(Address, Width) << ' ' - << format_hex_no_prefix(Size, Width) << ' ' << format("%5x ", Align) + OS << format("%0*x %0*x %5x ", Width, Address, Width, Size, Align) << left_justify(Name, 7); } @@ -100,8 +99,7 @@ static void writeMapFile2(raw_fd_ostream &OS, int Width = ELFT::Is64Bits ? 16 : 8; OS << left_justify("Address", Width) << ' ' << left_justify("Size", Width) - << ' ' << left_justify("Align", 5) << ' ' << left_justify("Out", 7) << ' ' - << left_justify("In", 7) << ' ' << left_justify("File", 7) << " Symbol\n"; + << " Align Out In File Symbol\n"; for (OutputSectionBase *Sec : OutputSections) { writeOutSecLine(OS, Width, Sec->Addr, Sec->Size, Sec->Addralign, |