[llvm] r296553 - [opt-viewer] Suggest installing the faster parser (libYAML)
Adam Nemet via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 28 16:54:40 PST 2017
Author: anemet
Date: Tue Feb 28 18:54:40 2017
New Revision: 296553
URL: http://llvm.org/viewvc/llvm-project?rev=296553&view=rev
Log:
[opt-viewer] Suggest installing the faster parser (libYAML)
Modified:
llvm/trunk/utils/opt-viewer/opt-viewer.py
Modified: llvm/trunk/utils/opt-viewer/opt-viewer.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/opt-viewer/opt-viewer.py?rev=296553&r1=296552&r2=296553&view=diff
==============================================================================
--- llvm/trunk/utils/opt-viewer/opt-viewer.py (original)
+++ llvm/trunk/utils/opt-viewer/opt-viewer.py Tue Feb 28 18:54:40 2017
@@ -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
More information about the llvm-commits
mailing list