[llvm-commits] [llvm] r127612 - /llvm/trunk/include/llvm/Support/Compiler.h

John McCall rjmccall at apple.com
Mon Mar 14 13:20:29 PDT 2011


Author: rjmccall
Date: Mon Mar 14 15:20:29 2011
New Revision: 127612

URL: http://llvm.org/viewvc/llvm-project?rev=127612&view=rev
Log:
Okay, some compilers complain if you provide the exception-specification
where none was before.  Just don't declare it and hope it's declared
in every translation unit that needs it.


Modified:
    llvm/trunk/include/llvm/Support/Compiler.h

Modified: llvm/trunk/include/llvm/Support/Compiler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Compiler.h?rev=127612&r1=127611&r2=127612&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Compiler.h (original)
+++ llvm/trunk/include/llvm/Support/Compiler.h Mon Mar 14 15:20:29 2011
@@ -133,11 +133,6 @@
  || (__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
 





More information about the llvm-commits mailing list