summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2017-07-14 04:54:26 +0000
committerAdam Nemet <anemet@apple.com>2017-07-14 04:54:26 +0000
commitc5bcc587aec549b7e30104fd65530493deba9942 (patch)
tree4072c81ae14f1e2eae395aae6cff6b8ee0ed3668 /llvm
parent4e332c7cf1b32cc2227d1d70c917c6838774efbe (diff)
downloadbcm5719-llvm-c5bcc587aec549b7e30104fd65530493deba9942.tar.gz
bcm5719-llvm-c5bcc587aec549b7e30104fd65530493deba9942.zip
[opt-viewer] Flush stdout after progress update
Without this, there was no progress shown during parsing but only during rendering on macOS. llvm-svn: 308000
Diffstat (limited to 'llvm')
-rw-r--r--llvm/tools/opt-viewer/optpmap.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/opt-viewer/optpmap.py b/llvm/tools/opt-viewer/optpmap.py
index 01e848e0397..16cb22e2149 100644
--- a/llvm/tools/opt-viewer/optpmap.py
+++ b/llvm/tools/opt-viewer/optpmap.py
@@ -20,6 +20,7 @@ def _wrapped_func(func_and_args):
with _current.get_lock():
_current.value += 1
sys.stdout.write('\r\t{} of {}'.format(_current.value, _total.value))
+ sys.stdout.flush()
return func(argument)
OpenPOWER on IntegriCloud