[PATCH] D17881: [Compiler-rt][MIPS] Defining macros for MIPS archs
Mohit Bhakkad via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 4 02:36:54 PST 2016
mohit.bhakkad created this revision.
mohit.bhakkad added reviewers: samsonov, eugenis.
mohit.bhakkad added subscribers: jaydeep, sagar, llvm-commits.
mohit.bhakkad set the repository for this revision to rL LLVM.
Repository:
rL LLVM
http://reviews.llvm.org/D17881
Files:
lib/sanitizer_common/sanitizer_platform.h
Index: lib/sanitizer_common/sanitizer_platform.h
===================================================================
--- lib/sanitizer_common/sanitizer_platform.h
+++ lib/sanitizer_common/sanitizer_platform.h
@@ -93,6 +93,15 @@
# define SANITIZER_X32 0
#endif
+#if defined(__mips__)
+# define SANITIZER_MIPS 1
+# if defined(__mips64)
+# define SANITIZER_MIPS64 1
+# else
+# define SANITIZER_MIPS32 1
+# endif
+#endif
+
// By default we allow to use SizeClassAllocator64 on 64-bit platform.
// But in some cases (e.g. AArch64's 39-bit address space) SizeClassAllocator64
// does not work well and we need to fallback to SizeClassAllocator32.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17881.49809.patch
Type: text/x-patch
Size: 650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160304/2192674a/attachment.bin>
More information about the llvm-commits
mailing list