[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
llvm-svn: 226790

clang/lib/Driver/SanitizerArgs.cpp

index bd7bc21..2740239 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)) {