Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / tools / libclang / linker-script-to-export-list.py
blob745996028d835fa57937d3845cb4a24dc3f9e78b
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("^\s+(clang_[^;]+)", line)
10 if m:
11 output_file.write(m.group(1) + "\n")