summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt-viewer/optpmap.py
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/opt-viewer/optpmap.py')
-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