Sign in
llvm
/
llvm-project
/
7a7c059d867554e116244ad5639d05d75ed1a7cd
/
.
/
clang
/
tools
/
libclang
/
linker-script-to-export-list.py
blob: 37fb172b9a0a25e72534dd54009e85a287f2a574 [
file
] [
log
] [
blame
]
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"
)