summaryrefslogtreecommitdiffstats
path: root/lld/ELF/MapFile.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-01-31 20:42:34 +0000
committerRui Ueyama <ruiu@google.com>2017-01-31 20:42:34 +0000
commiteb1ad400f9f500f8a191f4953655422b96dda91a (patch)
tree7e5e325d97bb9538d3a72a9bae558f3e0fd41eff /lld/ELF/MapFile.cpp
parent42932fb632f3403a1eccf85bf77197b8e5815e3c (diff)
downloadbcm5719-llvm-eb1ad400f9f500f8a191f4953655422b96dda91a.tar.gz
bcm5719-llvm-eb1ad400f9f500f8a191f4953655422b96dda91a.zip
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
Diffstat (limited to 'lld/ELF/MapFile.cpp')
-rw-r--r--lld/ELF/MapFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/MapFile.cpp b/lld/ELF/MapFile.cpp
index 60eee7ce00c..84a869a4aa2 100644
--- a/lld/ELF/MapFile.cpp
+++ b/lld/ELF/MapFile.cpp
@@ -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);
}
OpenPOWER on IntegriCloud