summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rwxr-xr-xllvm/test/Scripts/coff-dump.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/test/Scripts/coff-dump.py b/llvm/test/Scripts/coff-dump.py
index 464ab3110b4..0af3d368d5d 100755
--- a/llvm/test/Scripts/coff-dump.py
+++ b/llvm/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 (")")
OpenPOWER on IntegriCloud