summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuba Brecka <kuba.brecka@gmail.com>2016-08-09 12:12:15 +0000
committerKuba Brecka <kuba.brecka@gmail.com>2016-08-09 12:12:15 +0000
commit65966c8bde5c7b156aff4216da912b51bcf5c0c9 (patch)
treed56386eaa0acebe4c0fa3e898b7ce82fe7675792
parent8c1b6bd7d2ac9c4a1a017405959185978204c5d5 (diff)
downloadbcm5719-llvm-65966c8bde5c7b156aff4216da912b51bcf5c0c9.tar.gz
bcm5719-llvm-65966c8bde5c7b156aff4216da912b51bcf5c0c9.zip
Add `#ifdef __cplusplus` around `extern "C"` in Compiler.h. NFC.
llvm-svn: 278119
-rw-r--r--llvm/include/llvm/Support/Compiler.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h
index fae0d8f4419..3489937c9c5 100644
--- a/llvm/include/llvm/Support/Compiler.h
+++ b/llvm/include/llvm/Support/Compiler.h
@@ -405,12 +405,16 @@
// Thread Sanitizer is a tool that finds races in code.
// See http://code.google.com/p/data-race-test/wiki/DynamicAnnotations .
// tsan detects these exact functions by name.
+#ifdef __cplusplus
extern "C" {
+#endif
void AnnotateHappensAfter(const char *file, int line, const volatile void *cv);
void AnnotateHappensBefore(const char *file, int line, const volatile void *cv);
void AnnotateIgnoreWritesBegin(const char *file, int line);
void AnnotateIgnoreWritesEnd(const char *file, int line);
+#ifdef __cplusplus
}
+#endif
// This marker is used to define a happens-before arc. The race detector will
// infer an arc from the begin to the end when they share the same pointer
OpenPOWER on IntegriCloud