summaryrefslogtreecommitdiffstats
path: root/llvm/utils/create_ladder_graph.py
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/create_ladder_graph.py')
-rw-r--r--llvm/utils/create_ladder_graph.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/create_ladder_graph.py b/llvm/utils/create_ladder_graph.py
index ebe0179d6df..a5946ff24af 100644
--- a/llvm/utils/create_ladder_graph.py
+++ b/llvm/utils/create_ladder_graph.py
@@ -22,8 +22,8 @@ def main():
print("Rungs must be a multiple of 2")
return
print("int ladder(int *foo, int *bar, int x) {")
- rung1 = xrange(0, args.rungs, 2)
- rung2 = xrange(1, args.rungs, 2)
+ rung1 = range(0, args.rungs, 2)
+ rung2 = range(1, args.rungs, 2)
for i in rung1:
print("rung1%d:" % i)
print("*foo = x++;")
OpenPOWER on IntegriCloud