summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/TargetSelect.cpp
diff options
context:
space:
mode:
authorCameron Esfahani <dirty@apple.com>2013-08-29 20:23:14 +0000
committerCameron Esfahani <dirty@apple.com>2013-08-29 20:23:14 +0000
commit943908b78d3bd6c967c51c6fd5aac187e784e4f5 (patch)
tree172d8690719c54a13f7106f627754898ee5fc791 /llvm/lib/ExecutionEngine/TargetSelect.cpp
parent8d362a999e0b471d7eff822a09b0ac3485703276 (diff)
downloadbcm5719-llvm-943908b78d3bd6c967c51c6fd5aac187e784e4f5.tar.gz
bcm5719-llvm-943908b78d3bd6c967c51c6fd5aac187e784e4f5.zip
Clean up some usage of Triple. The base class has methods for determining if the target is iOS and Linux.
llvm-svn: 189604
Diffstat (limited to 'llvm/lib/ExecutionEngine/TargetSelect.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/TargetSelect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/TargetSelect.cpp b/llvm/lib/ExecutionEngine/TargetSelect.cpp
index 558d8b37af1..9b7d3489790 100644
--- a/llvm/lib/ExecutionEngine/TargetSelect.cpp
+++ b/llvm/lib/ExecutionEngine/TargetSelect.cpp
@@ -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;
}
OpenPOWER on IntegriCloud