[WebAssembly] Remove a second parameter from toString().
authorRui Ueyama <ruiu@google.com>
Fri, 9 Mar 2018 22:59:34 +0000 (22:59 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 9 Mar 2018 22:59:34 +0000 (22:59 +0000)
commit72a9a2321f592f51163a8268fc8dcc1b3af72805
treec04165d144a1844a632cd27cdf30e86cab0e9f00
parenta9098c66bf3b49ed4d489fe263e45024f8b003c8
[WebAssembly] Remove a second parameter from toString().

toString(T) is a stringize function for an object of type T. Each type
that has that function defined should know how to stringize itself, and
there should be one string representation of an object. Passing a
"supplemental" argument to toString() breaks that princple. We shouldn't
add a second parameter to that function.

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

llvm-svn: 327182
lld/wasm/Driver.cpp
lld/wasm/Symbols.cpp
lld/wasm/Symbols.h