[llvm-commits] [compiler-rt] r167448 - /compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h

Dmitry Vyukov dvyukov at google.com
Tue Nov 6 04:49:23 PST 2012


Author: dvyukov
Date: Tue Nov  6 06:49:22 2012
New Revision: 167448

URL: http://llvm.org/viewvc/llvm-project?rev=167448&view=rev
Log:
tasn: improve sanitizer_internal_defs.h
The file uses namespaces and extern "LANG", so it's kinda senseless to use #ifdef __cplusplus


Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h?rev=167448&r1=167447&r2=167448&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h Tue Nov  6 06:49:22 2012
@@ -43,10 +43,7 @@
 # define NOINLINE __attribute__((noinline))
 # define NORETURN  __attribute__((noreturn))
 # define THREADLOCAL   __thread
-# ifdef __cplusplus
-#   define NOTHROW throw()
-# else
-#   define NOTHROW __attribute__((__nothrow__))
+# define NOTHROW throw()
 #endif
 #endif  // _MSC_VER
 





More information about the llvm-commits mailing list