[PATCH] D77187: [lld][WebAssembly] Add initial support for -Map/--print-map
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 12 20:50:55 PDT 2020
ruiu added inline comments.
================
Comment at: lld/test/wasm/map-file.s:27
+// CHECK: Addr Off Size Out In Symbol
+// CHECK: - 8 6 TYPE
+// CHECK: - e 5 FUNCTION
----------------
Hmm, what is "Off"? It looks like it is monotonically increasing, but I'm not sure what these numbers are.
================
Comment at: lld/wasm/MapFile.cpp:124-125
+ int w = 8;
+ os << right_justify("Addr", w) << ' ' << right_justify("Off", w)
+ << " Size Out In Symbol\n";
+
----------------
Since w is always 8, you can output a plain text instead of using `right_justify`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77187/new/
https://reviews.llvm.org/D77187
More information about the llvm-commits
mailing list