summaryrefslogtreecommitdiffstats
path: root/llvm/utils/indirect_calls.py
diff options
context:
space:
mode:
authorSerge Guelton <sguelton@quarkslab.com>2019-01-03 14:11:33 +0000
committerSerge Guelton <sguelton@quarkslab.com>2019-01-03 14:11:33 +0000
commit4a27478a5b8bd9f13fef65e66b291a352c532371 (patch)
treea086542fe11fba6d8779ca2fa96036d80af04312 /llvm/utils/indirect_calls.py
parent41f98c834bc62a605ec51032482369cfa128d711 (diff)
downloadbcm5719-llvm-4a27478a5b8bd9f13fef65e66b291a352c532371.tar.gz
bcm5719-llvm-4a27478a5b8bd9f13fef65e66b291a352c532371.zip
Python compat - print statement
Make sure all print statements are compatible with Python 2 and Python3 using the `from __future__ import print_function` statement. Differential Revision: https://reviews.llvm.org/D56249 llvm-svn: 350307
Diffstat (limited to 'llvm/utils/indirect_calls.py')
-rwxr-xr-xllvm/utils/indirect_calls.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/utils/indirect_calls.py b/llvm/utils/indirect_calls.py
index b7349a6d884..e460ff7d083 100755
--- a/llvm/utils/indirect_calls.py
+++ b/llvm/utils/indirect_calls.py
@@ -10,6 +10,8 @@
dump format.
"""
+from __future__ import print_function
+
import os
import sys
import re
@@ -32,8 +34,8 @@ def look_for_indirect(file):
result = re.search('(call|jmp).*\*', line)
if result != None:
# TODO: Perhaps use cxxfilt to demangle functions?
- print function
- print line
+ print(function)
+ print(line)
return
def main(args):
OpenPOWER on IntegriCloud