lib: Add support for library wide utility functions, and make compilerrt_abort()
a real boy.
- The utility module needs to be included into every produced library, because
we don't have enough dependency tracking to know exactly which other modules
might require the utilities.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@144751 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/int_lib.h b/lib/int_lib.h
index 3334a55..5ce2023 100644
--- a/lib/int_lib.h
+++ b/lib/int_lib.h
@@ -37,15 +37,6 @@
#include <stdbool.h>
#include <float.h>
-/* If compiling for kernel use, call panic() instead of abort(). */
-#ifdef KERNEL_USE
-extern void panic (const char *, ...);
-#define compilerrt_abort() \
- panic("%s:%d: abort in %s", __FILE__, __LINE__, __FUNCTION__)
-#else
-#define compilerrt_abort() abort()
-#endif
-
#if !defined(INFINITY) && defined(HUGE_VAL)
#define INFINITY HUGE_VAL
#endif /* INFINITY */
@@ -53,4 +44,7 @@
/* Include the commonly used internal type definitions. */
#include "int_types.h"
+/* Include internal utility function declarations. */
+#include "int_util.h"
+
#endif /* INT_LIB_H */