Clean up some usage of Triple. The base class has methods for determining if the...
[oota-llvm.git] / lib / ExecutionEngine / TargetSelect.cpp
index 558d8b37af12585e89e8f90d16b2bdef86fa5906..9b7d34897907a3d92b1ad223bde8eef965815c00 100644 (file)
@@ -91,7 +91,7 @@ TargetMachine *EngineBuilder::selectTarget(const Triple &TargetTriple,
   // FIXME: non-iOS ARM FastISel is broken with MCJIT.
   if (UseMCJIT &&
       TheTriple.getArch() == Triple::arm &&
-      TheTriple.getOS() != Triple::IOS &&
+      !TheTriple.isiOS() &&
       OptLevel == CodeGenOpt::None) {
     OptLevel = CodeGenOpt::Less;
   }