File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ class Block(object):
77
77
for match in re .finditer (r'\bbb[0-9]+\b' , self .last_line ):
78
78
self .succs .append (match .group ())
79
79
80
- for match in re .finditer (r'\blabel %(\S+)\b' , self .last_line ):
80
+ it = re .finditer (r'\blabel %"?([^\s"]+)\b' , self .last_line )
81
+ for match in it :
81
82
self .succs .append (match .group (1 ))
82
83
83
84
return self .succs
@@ -95,7 +96,7 @@ def main():
95
96
block_map = {}
96
97
cur_block = None
97
98
sil_block_pattern = re .compile (r'^(\S+)(\(.*\))?: *(\/\/ *Preds:(.*))?$' )
98
- llvm_block_pattern1 = re .compile (r'^(\S+) : *; *preds =(.*)?$' )
99
+ llvm_block_pattern1 = re .compile (r'^"?([^\s"]+)"? : *; *preds =(.*)?$' )
99
100
llvm_block_pattern2 = re .compile (r'^; <label>:(\d+):? *; *preds =(.*)?$' )
100
101
101
102
# Scan the input file.
You can’t perform that action at this time.
0 commit comments