Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
tools/llvm-symbolizer/llvm-symbolizer.cpp | ||
---|---|---|
218 ↗ | (On Diff #44068) | 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 | ||
---|---|---|
218 ↗ | (On Diff #44283) | 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. |
Comment Actions
LGTM (but switch to line_iterator if it's convenient).
lib/DebugInfo/Symbolize/DIPrinter.cpp | ||
---|---|---|
46 ↗ | (On Diff #44348) | Can you use include/llvm/Support/LineIterator.h instead of splitting file manually? |