diff options
-rw-r--r-- | tools/parse_unaligned.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/parse_unaligned.py b/tools/parse_unaligned.py new file mode 100644 index 00000000..614ea692 --- /dev/null +++ b/tools/parse_unaligned.py @@ -0,0 +1,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 + + |