From: Adam Nemet Date: Wed, 1 Mar 2017 00:54:40 +0000 (+0000) Subject: [opt-viewer] Suggest installing the faster parser (libYAML) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3f7c6ad3852ba1c6a6579540dd60e96eeb42533;p=llvm [opt-viewer] Suggest installing the faster parser (libYAML) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296553 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/opt-viewer/opt-viewer.py b/utils/opt-viewer/opt-viewer.py index 597c7031069..8ac491eb6c8 100755 --- a/utils/opt-viewer/opt-viewer.py +++ b/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