diff options
author | Dan Albert <danalbert@google.com> | 2014-07-02 22:44:35 +0000 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2014-07-02 22:44:35 +0000 |
commit | c67aa5403ca4b7a82bb671de7c6a86db2ff4140d (patch) | |
tree | 1e39b2823e2aef16eb1b80d4e1643df76e071280 /libcxxabi/src | |
parent | f0e3ea11fa8b1069689eface948ef84718ee4590 (diff) | |
download | bcm5719-llvm-c67aa5403ca4b7a82bb671de7c6a86db2ff4140d.tar.gz bcm5719-llvm-c67aa5403ca4b7a82bb671de7c6a86db2ff4140d.zip |
Fix a warning about undeclared call to abort().
llvm-svn: 212232
Diffstat (limited to 'libcxxabi/src')
-rw-r--r-- | libcxxabi/src/Unwind/config.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxxabi/src/Unwind/config.h b/libcxxabi/src/Unwind/config.h index 6f0d1cfaf53..6b459ee361b 100644 --- a/libcxxabi/src/Unwind/config.h +++ b/libcxxabi/src/Unwind/config.h @@ -58,13 +58,15 @@ #endif #else - // ARM EHABI. + #include <stdlib.h> + static inline void assert_rtn(const char* func, const char* file, int line, const char* msg) __attribute__ ((noreturn)); static inline void assert_rtn(const char* func, const char* file, int line, const char* msg) { fprintf(stderr, "libunwind: %s %s:%d - %s\n", func, file, line, msg); assert(false); abort(); } + #define _LIBUNWIND_BUILD_ZERO_COST_APIS (__i386__ || __x86_64__ || __arm64__ || __arm__) #define _LIBUNWIND_BUILD_SJLJ_APIS 0 #define _LIBUNWIND_SUPPORT_FRAME_APIS (__i386__ || __x86_64__) |