summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.h
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2017-08-01 22:22:25 +0000
committerVitaly Buka <vitalybuka@google.com>2017-08-01 22:22:25 +0000
commit5d960ec4207f6db9db46d81ad7cb977b22a4c759 (patch)
treed0c7a5845464c67bcd7872fe78df0cf69a9ec674 /compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.h
parent7c91336efeff9419471ad27d63e5cbb26f034b9b (diff)
downloadbcm5719-llvm-5d960ec4207f6db9db46d81ad7cb977b22a4c759.tar.gz
bcm5719-llvm-5d960ec4207f6db9db46d81ad7cb977b22a4c759.zip
[sanitizer_common] Fuchsia OS support code
Submitted on behalf of Roland McGrath. Reviewers: vitalybuka, alekseyshl, kcc Reviewed By: vitalybuka Subscribers: cryptoad, srhines, kubamracek, mgorny, phosek, filcab, llvm-commits Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D36031 llvm-svn: 309756
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.h')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.h b/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.h
new file mode 100644
index 00000000000..455eadf6fda
--- /dev/null
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.h
@@ -0,0 +1,31 @@
+//===-- sanitizer_fuchsia.h ------------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===---------------------------------------------------------------------===//
+//
+// Fuchsia-specific sanitizer support.
+//
+//===---------------------------------------------------------------------===//
+#ifndef SANITIZER_FUCHSIA_H
+#define SANITIZER_FUCHSIA_H
+
+#include "sanitizer_platform.h"
+#if SANITIZER_FUCHSIA
+
+#include "sanitizer_common.h"
+
+#include <magenta/sanitizer.h>
+
+namespace __sanitizer {
+
+extern uptr MainThreadStackBase, MainThreadStackSize;
+extern sanitizer_shadow_bounds_t ShadowBounds;
+
+} // namespace __sanitizer
+
+#endif // SANITIZER_FUCHSIA
+#endif // SANITIZER_FUCHSIA_H
OpenPOWER on IntegriCloud