[llvm-branch-commits] [compiler-rt-branch] r270361 - Merging r263000:

Daniel Sanders via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun May 22 07:17:11 PDT 2016


Author: dsanders
Date: Sun May 22 09:17:10 2016
New Revision: 270361

URL: http://llvm.org/viewvc/llvm-project?rev=270361&view=rev
Log:
Merging r263000:
------------------------------------------------------------------------
r263000 | mohit.bhakkad | 2016-03-09 07:57:20 +0000 (Wed, 09 Mar 2016) | 7 lines

[Compiler-rt][MIPS] Defining macros for MIPS archs

Reviewers: samsonov

Subscribers: filcab, jaydeep, sagar, llvm-commits

Differential Revision: http://reviews.llvm.org/D17881
------------------------------------------------------------------------

Modified:
    compiler-rt/branches/release_38/lib/sanitizer_common/sanitizer_platform.h

Modified: compiler-rt/branches/release_38/lib/sanitizer_common/sanitizer_platform.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/branches/release_38/lib/sanitizer_common/sanitizer_platform.h?rev=270361&r1=270360&r2=270361&view=diff
==============================================================================
--- compiler-rt/branches/release_38/lib/sanitizer_common/sanitizer_platform.h (original)
+++ compiler-rt/branches/release_38/lib/sanitizer_common/sanitizer_platform.h Sun May 22 09:17:10 2016
@@ -81,6 +81,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.




More information about the llvm-branch-commits mailing list