Headers: mark arm_acle.h with extern "C"

Although the functions are marked as always_inline, the compiler with which they
are used may not honour the extended attributes and emit them as functions.  In
such a case, indicate that they should have extern "C" linkage and should not be
mangled in C++ style if used within C++.

llvm-svn: 212511
This commit is contained in:
Saleem Abdulrasool 2014-07-08 05:46:00 +00:00
parent 310035a4f9
commit 60df0615b6
1 changed files with 8 additions and 0 deletions

View File

@ -30,6 +30,10 @@
#include <stdint.h> #include <stdint.h>
#if defined(__cplusplus)
extern "C" {
#endif
/* Miscellaneous data-processing intrinsics */ /* Miscellaneous data-processing intrinsics */
static __inline__ uint32_t __attribute__((always_inline, nodebug)) static __inline__ uint32_t __attribute__((always_inline, nodebug))
@ -140,4 +144,8 @@ static __inline__ uint32_t __attribute__((always_inline, nodebug))
} }
#endif #endif
#if defined(__cplusplus)
}
#endif
#endif /* __ARM_ACLE_H */ #endif /* __ARM_ACLE_H */