diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-08-19 17:28:25 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-08-19 17:28:25 +0000 |
| commit | 4c35b711dab6bc59bc14d07d821e60d69f4dc192 (patch) | |
| tree | 9db068c4aa8dbd78a9a31c45821ee19a4e224731 | |
| parent | c8ce0becb53947d29d8497ee82ce2316f07909d3 (diff) | |
| download | bcm5719-llvm-4c35b711dab6bc59bc14d07d821e60d69f4dc192.tar.gz bcm5719-llvm-4c35b711dab6bc59bc14d07d821e60d69f4dc192.zip | |
Fix TypeError exception for re.compile().
llvm-svn: 138045
| -rwxr-xr-x | lldb/utils/test/lldb-disasm.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/utils/test/lldb-disasm.py b/lldb/utils/test/lldb-disasm.py index fb75bb62c6c..7825ca93086 100755 --- a/lldb/utils/test/lldb-disasm.py +++ b/lldb/utils/test/lldb-disasm.py @@ -129,7 +129,8 @@ def do_lldb_disassembly(lldb_commands, exe, disassemble_options, num_symbols, limited = True if num != -1 else False if limited: count = 0 - pattern = re.compile(re_symbol_pattern) + if re_symbol_pattern: + pattern = re.compile(re_symbol_pattern) stream = lldb.SBStream() for m in target.module_iter(): print "module:", m |

