summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorBrian Gesiak <modocache@gmail.com>2017-06-29 18:47:31 +0000
committerBrian Gesiak <modocache@gmail.com>2017-06-29 18:47:31 +0000
commitd3a05713012f33bd36670ea104788822d24e971d (patch)
treefd117ee2c0ebe7f880185ba8cd9e36a07bc96cc7 /clang/lib/Frontend/CompilerInvocation.cpp
parent7272f06a7027816e06a04559655461b60da58567 (diff)
downloadbcm5719-llvm-d3a05713012f33bd36670ea104788822d24e971d.tar.gz
bcm5719-llvm-d3a05713012f33bd36670ea104788822d24e971d.zip
[opt-viewer] Python 3 support in opt-viewer.py
Summary: Minor changes that allow opt-stats.py to support both Python 2 and 3. In addition to the same dictionary iterator changes that were necessary in https://reviews.llvm.org/D34564, this diff also: * Explcitly converts strings to bytes when reading from and writing to stdin and stdout. * No longer uses dictionaries as a sort key for optimization remarks. Dictionary sort order in Python 2 is pretty esoteric anyway, so it's not clear that the additional sorting had a benefit for end users (for details, https://stackoverflow.com/a/3484456/679254 is a good resource on Python 2 dictionary sort order). Reviewers: anemet, davidxl Reviewed By: anemet Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D34647 llvm-svn: 306720
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud