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.
Details
Diff Detail
- Repository
- rLLD LLVM Linker
Event Timeline
wasm/Symbols.cpp | ||
---|---|---|
186 | I'm ok with this change, but I like this feature, so I would like to bring it back in some form, perhaps for all backends. Otherwise it makes very long C++ symbols very hard to distinguish from the rest of the error/message. This is what gnu ld does I believe. |
wasm/Symbols.cpp | ||
---|---|---|
186 | If you need this, please do it all the times, or do it on the caller side. I want to keep toString() an unary function that converts a given object to its (only) string representation. |
I'm ok with this change, but I like this feature, so I would like to bring it back in some form, perhaps for all backends. Otherwise it makes very long C++ symbols very hard to distinguish from the rest of the error/message.
This is what gnu ld does I believe.