Details
Diff Detail
Event Timeline
tools/llvm-symbolizer/llvm-symbolizer.cpp | ||
---|---|---|
195 | This will be confusing: first you will print several blocks with function/file/lineno, and then several blocks with source code. Shouldn't they be interchanged? Probably source code printing can be implemented in DIPrinter. |
tools/llvm-symbolizer/llvm-symbolizer.cpp | ||
---|---|---|
195 | So, what are the drawbacks of printing source file contents from DIPrinter? We changed llvm-symbolizer to be agnostic of the way DILineInfo / DIInliningInfo is represented: and pass it directly from producer to printer, and now we return to manually writing all these loops. Keeping that in DIPrinter would also let you write unit tests for that functionality, if needed. |
LGTM (but switch to line_iterator if it's convenient).
lib/DebugInfo/Symbolize/DIPrinter.cpp | ||
---|---|---|
47 | Can you use include/llvm/Support/LineIterator.h instead of splitting file manually? |
Can you use include/llvm/Support/LineIterator.h instead of splitting file manually?