diff options
author | Adam Nemet <anemet@apple.com> | 2017-03-01 00:54:40 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2017-03-01 00:54:40 +0000 |
commit | 1eca59e8b7c21a788129f79cea7224304b937114 (patch) | |
tree | 84e82bc4bb585434acd2a6336421db1fa340ab78 | |
parent | 20b3e9a8355311aae1ca2f491b1eb2dd5ec44b84 (diff) | |
download | bcm5719-llvm-1eca59e8b7c21a788129f79cea7224304b937114.tar.gz bcm5719-llvm-1eca59e8b7c21a788129f79cea7224304b937114.zip |
[opt-viewer] Suggest installing the faster parser (libYAML)
llvm-svn: 296553
-rwxr-xr-x | llvm/utils/opt-viewer/opt-viewer.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/utils/opt-viewer/opt-viewer.py b/llvm/utils/opt-viewer/opt-viewer.py index 597c7031069..8ac491eb6c8 100755 --- a/llvm/utils/opt-viewer/opt-viewer.py +++ b/llvm/utils/opt-viewer/opt-viewer.py @@ -5,15 +5,14 @@ from __future__ import print_function desc = '''Generate HTML output to visualize optimization records from the YAML files generated with -fsave-optimization-record and -fdiagnostics-show-hotness. -The tools requires PyYAML and Pygments Python packages. - -For faster parsing, you may want to use libYAML with PyYAML.''' +The tools requires PyYAML and Pygments Python packages.''' import yaml # Try to use the C parser. try: from yaml import CLoader as Loader except ImportError: + print("For faster parsing, you may want to install libYAML for PyYAML") from yaml import Loader import functools |