• Home
  • Raw
  • Download

Lines Matching +full:- +full:match

39         match = re.match("^.+SECT.+External\s+\|\s+(\S+).*$", line)
40 if match:
41 yield match.group(1)
51 match = re.match("^\S+\s+[BDGRSTVW]\s+(\S+)$", line)
52 if match:
53 yield match.group(1)
57 process = subprocess.Popen(['llvm-readobj','-symbols',lib], bufsize=1,
62 # When looking through the output of llvm-readobj we expect to see Name,
66 match = re.search('Name: (\S+)', line)
67 if match:
68 name = match.group(1)
69 match = re.search('Section: (\S+)', line)
70 if match:
71 section = match.group(1)
72 match = re.search('StorageClass: (\S+)', line)
73 if match:
74 storageclass = match.group(1)
81 # Define functions which determine if the target is 32-bit Windows (as that's
93 match = re.match('.+machine \((\S+)\)', line)
94 if match:
95 retval = (match.group(1) == 'x86')
102 output = subprocess.check_output(['objdump','-f',lib],
105 match = re.match('.+file format (\S+)', line)
106 if match:
107 return (match.group(1) == 'pe-i386')
111 output = subprocess.check_output(['llvm-readobj','-file-headers',lib],
114 match = re.match('Format: (\S+)', line)
115 if match:
116 return (match.group(1) == 'COFF-i386')
127 match = re.match('[_@]([^@]+)', symbol)
128 if match:
129 return match.group(1)
156 # <function-type> ::= <function-class> <this-cvr-qualifiers>
157 # <calling-convention> <return-type>
158 # <argument-list> <throw-spec>
159 # <function-class> ::= [A-Z]
160 # <this-cvr-qualifiers> ::= [A-Z0-9_]*
161 # <calling-convention> ::= [A-JQ]
162 # <return-type> ::= .+
163 # <argument-list> ::= X (void)
166 # <throw-spec> ::= exceptions are not allowed
167 elif re.search('(llvm|clang)@@[A-Z][A-Z0-9_]*[A-JQ].+(X|.+@|.*Z)$', symbol):
183 match = re.match('_Z(T[VTIS])?(N.+)', symbol)
184 if not match:
189 names, _ = parse_itanium_nested_name(match.group(2))
196 if re.match('[CD][123]', names[-1][0]) and names[-2][1]:
200 elif names[-1][1]:
218 match = re.match('(\d+)(.+)', arg)
219 if match:
220 n = int(match.group(1))
221 name = match.group(1)+match.group(2)[:n]
222 rest = match.group(2)[n:]
225 match = re.match('([CD][123])(.+)', arg)
226 if match:
227 return match.group(1), match.group(2)
230 match = re.match('([^E]+)(.+)', arg)
231 if match:
232 return match.group(1), match.group(2)
244 match = re.match('(\d+)(.+)', tmp)
245 if match:
246 n = int(match.group(1))
247 tmp = match.group(2)[n:]
250 match = re.match('S[A-Z0-9]*_(.+)', tmp)
251 if match:
252 tmp = match.group(1)
278 match = re.match('NS[A-Z0-9]*_(.+)', arg)
279 if match:
280 tmp = match.group(1)
284 # Skip past CV-qualifiers and ref qualifiers
285 match = re.match('[rVKRO]*(.+)', tmp);
286 if match:
287 tmp = match.group(1)
322 tool_exes = ['dumpbin','nm','objdump','llvm-readobj']
325 parser.add_argument('--mangling', choices=['itanium','microsoft'],
327 parser.add_argument('--tools', choices=tool_exes, nargs='*',
332 parser.add_argument('-o', metavar='file', type=str, help='output to file')
336 # and the function to use to determine if the target is 32-bit windows.
340 'llvm-readobj' : (readobj_get_symbols, readobj_is_32bit_windows) }
426 # On Ctrl-C terminate everything and exit
459 match = re.search("^\?(\??\w+\@\?\$\w+)\@", k) variable
460 if match:
461 name = match.group(1)
464 # checking if the second-to-last name in the list is a template.
465 match = re.match('_Z(T[VTIS])?(N.+)', k) variable
466 if match:
468 names, _ = parse_itanium_nested_name(match.group(2))
469 if names and names[-2][1]:
474 # just leave it as-is.