r226790 - [MSan][Clang][MIPS] Enabled memory and dataflow options for MIPS64 platform
Mohit K. Bhakkad
mohit.bhakkad at imgtec.com
Wed Jan 21 23:21:22 PST 2015
Author: mohit.bhakkad
Date: Thu Jan 22 01:21:22 2015
New Revision: 226790
URL: http://llvm.org/viewvc/llvm-project?rev=226790&view=rev
Log:
[MSan][Clang][MIPS] Enabled memory and dataflow options for MIPS64 platform
Reviewers: kcc, samsonov, petarj, eugenis
Modified:
cfe/trunk/lib/Driver/SanitizerArgs.cpp
Modified: cfe/trunk/lib/Driver/SanitizerArgs.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/SanitizerArgs.cpp?rev=226790&r1=226789&r2=226790&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/SanitizerArgs.cpp (original)
+++ cfe/trunk/lib/Driver/SanitizerArgs.cpp Thu Jan 22 01:21:22 2015
@@ -120,9 +120,11 @@ static unsigned getToolchainUnsupportedK
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)) {
More information about the cfe-commits
mailing list