[TargetVersion] Only enable on RISC-V and AArch64 (#115991)
[llvm-project.git] / clang / tools / libclang / linker-script-to-export-list.py
blob9c7b6a98a34b5568f18d015b3dfb429b9a03c870
1 import re
2 import os
3 import sys
5 input_file = open(sys.argv[1])
6 output_file = open(sys.argv[2], "w")
8 for line in input_file:
9 m = re.search(r"^\s+(clang_[^;]+)", line)
10 if m:
11 output_file.write(m.group(1) + "\n")