summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-09-18 22:24:01 +0000
committerEric Christopher <echristo@gmail.com>2013-09-18 22:24:01 +0000
commit0db88a7d7e96cc75c53ea04878b003453cfc9023 (patch)
tree00f664ca9ab5cb1db7fd69dcbb86dded029cc8b1 /clang/lib
parent7f2ef22452a8f9709156b8e7fad5b4fa86420a7a (diff)
downloadbcm5719-llvm-0db88a7d7e96cc75c53ea04878b003453cfc9023.tar.gz
bcm5719-llvm-0db88a7d7e96cc75c53ea04878b003453cfc9023.zip
The intrinsics should all have C linkage.
llvm-svn: 190963
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Headers/Intrin.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/clang/lib/Headers/Intrin.h b/clang/lib/Headers/Intrin.h
index 8c976fbc13d..6fd76e311b9 100644
--- a/clang/lib/Headers/Intrin.h
+++ b/clang/lib/Headers/Intrin.h
@@ -32,6 +32,10 @@
/* First include the standard intrinsics. */
#include <x86intrin.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* And the random ones that aren't in those files. */
__m64 _m_from_float(float);
__m64 _m_from_int(int _l);
@@ -46,10 +50,10 @@ void __addfsword(unsigned long, unsigned short);
void __code_seg(const char *);
void __cpuid(int[4], int);
void __cpuidex(int[4], int, int);
-void __cdecl __debugbreak(void);
+void __debugbreak(void);
__int64 __emul(int, int);
unsigned __int64 __emulu(unsigned int, unsigned int);
-void __fastfail(unsigned int);
+void __cdecl __fastfail(unsigned int);
unsigned int __getcallerseflags(void);
void __halt(void);
unsigned char __inbyte(unsigned short);
@@ -336,6 +340,8 @@ void __cdecl _writegsbase_u64(unsigned __int64);
void __cdecl _xrstor64(void const *, unsigned __int64);
void __cdecl _xsave64(void *, unsigned __int64);
void __cdecl _xsaveopt64(void *, unsigned __int64);
+
+}
#endif
#endif
#endif
OpenPOWER on IntegriCloud