aboutsummaryrefslogtreecommitdiff
path: root/tools/parse_unaligned.py
blob: 614ea69268e9fbc8959f8b6f1dd742edfbaada2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os, sys
from subprocess import Popen, PIPE, STDOUT

shown = set()

for line in open(sys.argv[1]).readlines():
  try:
    x = line.split(' in ')[1].split(':')[0]
    #output = str([x, Popen(['c++filt', x], stdout=PIPE).communicate()])
    output = Popen(['c++filt', x], stdout=PIPE).communicate()[0]
    if output not in shown:
      shown.add(output)
      print output,
  except:
    pass