[llvm-commits] [llvm] r112485 - /llvm/trunk/test/Scripts/coff-dump.py
NAKAMURA Takumi
geek4civic at gmail.com
Mon Aug 30 08:19:56 PDT 2010
Author: chapuni
Date: Mon Aug 30 10:19:56 2010
New Revision: 112485
URL: http://llvm.org/viewvc/llvm-project?rev=112485&view=rev
Log:
coff-dump.py: Fix PR7996. Now it is compatible to Python-2.4.
Modified:
llvm/trunk/test/Scripts/coff-dump.py
Modified: llvm/trunk/test/Scripts/coff-dump.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Scripts/coff-dump.py?rev=112485&r1=112484&r2=112485&view=diff
==============================================================================
--- llvm/trunk/test/Scripts/coff-dump.py (original)
+++ llvm/trunk/test/Scripts/coff-dump.py Mon Aug 30 10:19:56 2010
@@ -397,8 +397,11 @@
selector = read_value (definitions [0])
definitions = definitions [1] [selector]
- description = definitions[value] if value in definitions else "unknown"
-
+ if value in definitions:
+ description = definitions[value]
+ else:
+ description = "unknown"
+
write ("%s (" % description)
write_value (oformat, value)
write (")")
More information about the llvm-commits
mailing list