diff options
| author | George Rimar <grimar@accesssoftek.com> | 2017-01-16 11:35:38 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2017-01-16 11:35:38 +0000 |
| commit | 07d94e35293d6c6e0d028b51f1dd343259ad7edb (patch) | |
| tree | 486f947aecf4264bba515b85d7d139fea47a2cf3 /lld/ELF/MapFile.cpp | |
| parent | 73a68c25a07bed73e6288f7288c0bc3fa3c60ecc (diff) | |
| download | bcm5719-llvm-07d94e35293d6c6e0d028b51f1dd343259ad7edb.tar.gz bcm5719-llvm-07d94e35293d6c6e0d028b51f1dd343259ad7edb.zip | |
[ELF] - Fix format specifiers in writeOutSecLine()
I had a error in map-file.s testcase under MSVS2015/win32:
map-file.s:30:16: error: expected string not found in input
// CHECK-NEXT: 0000000000200158 0000000000000030 8 .eh_frame
<stdin>:2:1: note: scanning from here
0000000000200158 10 30 .eh_frame
Format string '%0*x' requires an argument of type 'unsigned int',
but argument has type 'uint64_t'. Proper format is '%0*llx' then.
This fixes testcase failture for me.
llvm-svn: 292102
Diffstat (limited to 'lld/ELF/MapFile.cpp')
| -rw-r--r-- | lld/ELF/MapFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/MapFile.cpp b/lld/ELF/MapFile.cpp index 8986b9f78f7..60eee7ce00c 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*x %0*x %5x ", Width, Address, Width, Size, Align) + OS << format("%0*llx %0*llx %5llx ", Width, Address, Width, Size, Align) << left_justify(Name, 7); } |

