mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-09 13:55:22 +00:00
coff-dump.py: Fix PR7996. Now it is compatible to Python-2.4.
llvm-svn: 112485
This commit is contained in:
parent
2f463fc492
commit
89dab50acd
@ -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 (")")
|
||||
|
Loading…
x
Reference in New Issue
Block a user