aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/clang16/tools/libclang/linker-script-to-export-list.py
blob: 37fb172b9a0a25e72534dd54009e85a287f2a574 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import re
import os
import sys

input_file = open(sys.argv[1])
output_file = open(sys.argv[2], 'w')

for line in input_file:
    m = re.search('^\s+(clang_[^;]+)', line)
    if m:
        output_file.write(m.group(1) + "\n")