[llvm-commits] [compiler-rt] r159337 - /compiler-rt/trunk/lib/interception/interception.h

Alexey Samsonov samsonov at google.com
Thu Jun 28 01:07:19 PDT 2012


Author: samsonov
Date: Thu Jun 28 03:07:19 2012
New Revision: 159337

URL: http://llvm.org/viewvc/llvm-project?rev=159337&view=rev
Log:
[Sanitizer] fight more semicolons in macro definitions (to please mac cmake build)

Modified:
    compiler-rt/trunk/lib/interception/interception.h

Modified: compiler-rt/trunk/lib/interception/interception.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/interception/interception.h?rev=159337&r1=159336&r2=159337&view=diff
==============================================================================
--- compiler-rt/trunk/lib/interception/interception.h (original)
+++ compiler-rt/trunk/lib/interception/interception.h Thu Jun 28 03:07:19 2012
@@ -98,7 +98,7 @@
 # define INTERCEPTOR_ATTRIBUTE __attribute__((visibility("default")))
 # define DECLARE_WRAPPER(ret_type, convention, func, ...) \
     extern "C" ret_type convention func(__VA_ARGS__) \
-    __attribute__((weak, alias("__interceptor_" #func), visibility("default")))
+    __attribute__((weak, alias("__interceptor_" #func), visibility("default")));
 #endif
 
 #define PTR_TO_REAL(x) real_##x
@@ -112,7 +112,7 @@
   }
 
 #define DECLARE_REAL_AND_INTERCEPTOR(ret_type, func, ...) \
-  DECLARE_REAL(ret_type, func, ##__VA_ARGS__); \
+  DECLARE_REAL(ret_type, func, ##__VA_ARGS__) \
   extern "C" ret_type WRAP(func)(__VA_ARGS__);
 
 // FIXME(timurrrr): We might need to add DECLARE_REAL_EX etc to support
@@ -131,11 +131,11 @@
 #define DEFAULT_CONVENTION
 
 #define DEFINE_REAL(ret_type, func, ...) \
-  DEFINE_REAL_EX(ret_type, DEFAULT_CONVENTION, func, __VA_ARGS__);
+  DEFINE_REAL_EX(ret_type, DEFAULT_CONVENTION, func, __VA_ARGS__)
 
 #define INTERCEPTOR_EX(ret_type, convention, func, ...) \
   DEFINE_REAL_EX(ret_type, convention, func, __VA_ARGS__) \
-  DECLARE_WRAPPER(ret_type, convention, func, __VA_ARGS__); \
+  DECLARE_WRAPPER(ret_type, convention, func, __VA_ARGS__) \
   extern "C" \
   INTERCEPTOR_ATTRIBUTE \
   ret_type convention WRAP(func)(__VA_ARGS__)





More information about the llvm-commits mailing list