aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJava.cpp
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2017-06-30 18:44:33 +0000
committerErich Keane <erich.keane@intel.com>2017-06-30 18:44:33 +0000
commit60cb75fd59ff0930450b82bd55cbb38f67800133 (patch)
tree5351dcce7aea2d2b5065877537e047d909b9a07a /clang/unittests/Format/FormatTestJava.cpp
parent990f01f8c6c5dca397b341d97648bc43478a39ef (diff)
downloadllvm-60cb75fd59ff0930450b82bd55cbb38f67800133.zip
llvm-60cb75fd59ff0930450b82bd55cbb38f67800133.tar.gz
llvm-60cb75fd59ff0930450b82bd55cbb38f67800133.tar.bz2
Fix opt --help ordering of available optimizations.
Introduced in -r283004, the PassNameParser sorts Optimization options in reverse. This is because the commit replaced a compare function with "<" (which would seemingly be proper based on the name of the comparison function). The result is the 'true' result is converted to '1', which is inverted. This patch fixes this by replacing the '<' operator call on StringRef with a call to the StringRef compare function. It also renames the function to better reflect its meaning. Differential Revision: https://reviews.llvm.org/D34831 llvm-svn: 306857
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions