[PATCH] D17881: [Compiler-rt][MIPS] Defining macros for MIPS archs
Mohit Bhakkad via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 9 00:02:08 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL263000: [Compiler-rt][MIPS] Defining macros for MIPS archs (authored by mohit.bhakkad).
Changed prior to commit:
http://reviews.llvm.org/D17881?vs=49937&id=50109#toc
Repository:
rL LLVM
http://reviews.llvm.org/D17881
Files:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform.h
Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform.h
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform.h
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform.h
@@ -93,6 +93,21 @@
# define SANITIZER_X32 0
#endif
+#if defined(__mips__)
+# define SANITIZER_MIPS 1
+# if defined(__mips64)
+# define SANITIZER_MIPS32 0
+# define SANITIZER_MIPS64 1
+# else
+# define SANITIZER_MIPS32 1
+# define SANITIZER_MIPS64 0
+# endif
+#else
+# define SANITIZER_MIPS 0
+# define SANITIZER_MIPS32 0
+# define SANITIZER_MIPS64 0
+#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.50109.patch
Type: text/x-patch
Size: 856 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160309/bf66407b/attachment.bin>
More information about the llvm-commits
mailing list