lib: Integrate abi.h into int_lib.h, there aren't good enough reasons for this extra complexity.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@144660 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/int_lib.h b/lib/int_lib.h
index e1fd6b7..27d01fd 100644
--- a/lib/int_lib.h
+++ b/lib/int_lib.h
@@ -16,6 +16,17 @@
#ifndef INT_LIB_H
#define INT_LIB_H
+/* ABI macro definitions */
+
+#if __ARM_EABI__
+# define ARM_EABI_FNALIAS(aeabi_name, name) \
+ void __aeabi_##aeabi_name() __attribute__((alias("__" #name)));
+# define COMPILER_RT_ABI __attribute__((pcs("aapcs")))
+#else
+# define ARM_EABI_FNALIAS(aeabi_name, name)
+# define COMPILER_RT_ABI
+#endif
+
/* Assumption: signed integral is 2's complement */
/* Assumption: right shift of signed negative is arithmetic shift */