[PATCH] D82546: [Debugify][OriginalDIMode] Export the report into JSON file
Stephen Tozer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 2 03:44:05 PST 2021
StephenTozer added a comment.
The fundamentals of the patch look solid; minor point about the HTML templating, and also I think there should be a couple of tests for the `llvm-original-di-preservation` script - nothing too complicated, just verifying that it produces the correct HTML for a given input, as with the `opt-viewer` tests.
================
Comment at: llvm/utils/llvm-original-di-preservation.py:32
+
+ html_header = "<html>\n"
+ html_header += "<head>\n"
----------------
For each of these blocks, instead of using repeated `html_header +=` you could instead use triple quotes and just write out the full HTML verbatim (using formatting to insert variables as needed), as in the other HTML generating python scripts.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82546/new/
https://reviews.llvm.org/D82546
More information about the llvm-commits
mailing list