summaryrefslogtreecommitdiff
path: root/lib/int_lib.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-11-16 01:19:19 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-11-16 01:19:19 +0000
commit401f693a874c0f2fd9e37173e3ab7045a1bdeb3d (patch)
tree882c35bcad2dab8b3a021cdd2bbbd540051750c5 /lib/int_lib.h
parentdbaa3974d4c012ad500a790be5e51ce66188d15c (diff)
downloadcompiler-rt-401f693a874c0f2fd9e37173e3ab7045a1bdeb3d.tar.gz
compiler-rt-401f693a874c0f2fd9e37173e3ab7045a1bdeb3d.tar.bz2
compiler-rt-401f693a874c0f2fd9e37173e3ab7045a1bdeb3d.tar.xz
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
Diffstat (limited to 'lib/int_lib.h')
-rw-r--r--lib/int_lib.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/int_lib.h b/lib/int_lib.h
index 3334a556..5ce20238 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 @@ extern void panic (const char *, ...);
/* Include the commonly used internal type definitions. */
#include "int_types.h"
+/* Include internal utility function declarations. */
+#include "int_util.h"
+
#endif /* INT_LIB_H */