Okay, some compilers complain if you provide the exception-specification
authorJohn McCall <rjmccall@apple.com>
Mon, 14 Mar 2011 20:20:29 +0000 (20:20 +0000)
committerJohn McCall <rjmccall@apple.com>
Mon, 14 Mar 2011 20:20:29 +0000 (20:20 +0000)
where none was before.  Just don't declare it and hope it's declared
in every translation unit that needs it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127612 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Compiler.h

index c9cc3da8c3f5429bd20d97eaf7c09bed29293a4d..0df154b5d6d6fce2996d7b4c9122482266555d8b 100644 (file)
  || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
 # define LLVM_BUILTIN_UNREACHABLE __builtin_unreachable()
 #else
-#ifdef __cplusplus
-extern "C" LLVM_ATTRIBUTE_NORETURN void abort() throw();
-#else
-extern LLVM_ATTRIBUTE_NORETURN void abort();
-#endif
 # define LLVM_BUILTIN_UNREACHABLE abort()
 #endif