projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
17d3983
)
coff-dump.py: Fix PR7996. Now it is compatible to Python-2.4.
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Mon, 30 Aug 2010 15:19:56 +0000
(15:19 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Mon, 30 Aug 2010 15:19:56 +0000
(15:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112485
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Scripts/coff-dump.py
patch
|
blob
|
history
diff --git
a/test/Scripts/coff-dump.py
b/test/Scripts/coff-dump.py
index 464ab3110b478a40d95d71aa17b12cf516eba88d..0af3d368d5d0aaf30d133dbf753f13fdb0c987bb 100755
(executable)
--- a/
test/Scripts/coff-dump.py
+++ b/
test/Scripts/coff-dump.py
@@
-397,8
+397,11
@@
def handle_enum(entry):
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 (")")