[PATCH] D34646: [opt-viewer] Handle file names that contain '#'
Brian Gesiak via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 18 12:22:58 PDT 2017
modocache updated this revision to Diff 107154.
modocache added a comment.
Rebasing onto trunk in order to pick up the file mv from utils/ to tools/.
https://reviews.llvm.org/D34646
Files:
tools/opt-viewer/optrecord.py
Index: tools/opt-viewer/optrecord.py
===================================================================
--- tools/opt-viewer/optrecord.py
+++ tools/opt-viewer/optrecord.py
@@ -49,7 +49,7 @@
def html_file_name(filename):
- return filename.replace('/', '_') + ".html"
+ return filename.replace('/', '_').replace('#', '_') + ".html"
def make_link(File, Line):
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34646.107154.patch
Type: text/x-patch
Size: 374 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170718/1660fb88/attachment.bin>
More information about the llvm-commits
mailing list