add abi_func
[musl-tables] / abi_type_data.sh
diff --git a/abi_type_data.sh b/abi_type_data.sh
new file mode 100755 (executable)
index 0000000..5d6420d
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+CXXFILT=${CXXFILT:-c++filt}
+
+$CXX -S -o - abi.cc |sed -n 's/^\(_Z.*\):/\1/p' |$CXXFILT |sed '
+s/^x_\([^(]*\)(\(.*\))/\1: \2/
+s/^y_\([^(]*\)(\(.*\))/\1*: \2/
+s/floatcomplex /float _Complex/g
+s/doublecomplex /double _Complex/g
+'