Details
Diff Detail
Event Timeline
Makes sense.
Can you also update http://llvm.org/docs/CommandGuide/llvm-symbolizer.html ?
Out of curiosity, why do you need this? What is addr2line behavior for non-address lines?
tools/llvm-symbolizer/llvm-symbolizer.cpp | ||
---|---|---|
93 | Argument should at least be const char*, and go before output parameters. Or make it a StringRef. |
Out of curiosity, why do you need this?
To be able to pipe a complicate output through symbolizer. E.g. fuzzers can print out coverage addresses.
What is addr2line behavior for non-address lines?
I don't think addr2line behavior is relevant here. This is not addr2line, right?
addr2line is not smart at all:
$ echo "hello" | addr2line -e /usr/bin/addr2line
??:0
LGTM, but please address comments.
tools/llvm-symbolizer/llvm-symbolizer.cpp | ||
---|---|---|
93 | Pass StringRef by value. | |
100 | So, once we have StringRef, let's use its methods instead of a C string functions. | |
170 | Reduce the indentation: if (!parseCommand(...)) { outs() << InputString; continue; } // existing code |
thanks. submitting.
tools/llvm-symbolizer/llvm-symbolizer.cpp | ||
---|---|---|
100 | I suggest we do this later. I don't see a point in this rewrite now. |
Argument should at least be const char*, and go before output parameters. Or make it a StringRef.