]> granicus.if.org Git - clang/commitdiff
[MSan][Clang][MIPS] Enabled memory and dataflow options for MIPS64 platform
authorMohit K. Bhakkad <mohit.bhakkad@imgtec.com>
Thu, 22 Jan 2015 07:21:22 +0000 (07:21 +0000)
committerMohit K. Bhakkad <mohit.bhakkad@imgtec.com>
Thu, 22 Jan 2015 07:21:22 +0000 (07:21 +0000)
Reviewers: kcc, samsonov, petarj, eugenis

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@226790 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/SanitizerArgs.cpp

index bd7bc218e3bf1182de0049cdc47dd2067ff4743a..2740239f6fc5e064145765617d70350ad6061d29 100644 (file)
@@ -120,9 +120,11 @@ static unsigned getToolchainUnsupportedKinds(const ToolChain &TC) {
   bool IsLinux = TC.getTriple().getOS() == llvm::Triple::Linux;
   bool IsX86 = TC.getTriple().getArch() == llvm::Triple::x86;
   bool IsX86_64 = TC.getTriple().getArch() == llvm::Triple::x86_64;
+  bool IsMIPS64 = TC.getTriple().getArch() == llvm::Triple::mips64 ||
+                  TC.getTriple().getArch() == llvm::Triple::mips64el;
 
   unsigned Unsupported = 0;
-  if (!(IsLinux && IsX86_64)) {
+  if (!(IsLinux && (IsX86_64 || IsMIPS64))) {
     Unsupported |= Memory | DataFlow;
   }
   if (!((IsLinux || IsFreeBSD) && IsX86_64)) {