From 401f693a874c0f2fd9e37173e3ab7045a1bdeb3d Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 16 Nov 2011 01:19:19 +0000 Subject: 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 --- lib/int_lib.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'lib/int_lib.h') 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 #include -/* 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 */ -- cgit v1.2.3