[llvm] r219739 - MC, COFF: Make bigobj test compatible with python3

David Majnemer david.majnemer at gmail.com
Tue Oct 14 15:35:11 PDT 2014


Author: majnemer
Date: Tue Oct 14 17:35:11 2014
New Revision: 219739

URL: http://llvm.org/viewvc/llvm-project?rev=219739&view=rev
Log:
MC, COFF: Make bigobj test compatible with python3

No functionality change intended.

Modified:
    llvm/trunk/test/MC/COFF/bigobj.py

Modified: llvm/trunk/test/MC/COFF/bigobj.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/COFF/bigobj.py?rev=219739&r1=219738&r2=219739&view=diff
==============================================================================
--- llvm/trunk/test/MC/COFF/bigobj.py (original)
+++ llvm/trunk/test/MC/COFF/bigobj.py Tue Oct 14 17:35:11 2014
@@ -18,9 +18,9 @@ num_sections = 65277
 # CHECK-NEXT:   ]
 # CHECK-NEXT: }
 
-for i in xrange(0, num_sections):
-	print """	.section	.bss,"bw",discard,_b%d
+for i in range(0, num_sections):
+	print("""	.section	.bss,"bw",discard,_b%d
 	.globl	_b%d                     # @b%d
 _b%d:
 	.byte	0                       # 0x0
-""" % (i, i, i, i)
+""" % (i, i, i, i))





More information about the llvm-commits mailing list