Print alignment in decimal instead of hexadecimal.

Previously, we were printing out something like this for
sections/symbols with alignment 16

  0000000000201000 0000000000000182    10 .data

which I think confusing. I think printing it in decimal is better.

Differential Revision: https://reviews.llvm.org/D29258

llvm-svn: 293685
This commit is contained in:
Rui Ueyama
2017-01-31 20:42:34 +00:00
parent 42932fb632
commit eb1ad400f9
4 changed files with 8 additions and 8 deletions

View File

@@ -35,7 +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("%0*llx %0*llx %5llx ", Width, Address, Width, Size, Align)
OS << format("%0*llx %0*llx %5lld ", Width, Address, Width, Size, Align)
<< left_justify(Name, 7);
}