summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2014-11-29 19:18:21 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2014-11-29 19:18:21 +0000
commit2bfd9129f400c4f3b9d108dcb6be798d2fbfc6dc (patch)
tree6c0325dd172dbe4be87e223c2f38b886c4abdf53 /llvm/lib/CodeGen/TargetLoweringBase.cpp
parent7405608cdd518229ff1652a462dea8736c5ab3ae (diff)
downloadbcm5719-llvm-2bfd9129f400c4f3b9d108dcb6be798d2fbfc6dc.tar.gz
bcm5719-llvm-2bfd9129f400c4f3b9d108dcb6be798d2fbfc6dc.zip
Target triple OS detection tidyup. NFC
Use Triple::isOS*() helpers where possible. llvm-svn: 222960
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index e833fd36cc8..bd5cd4c8cc2 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -414,7 +414,7 @@ static void InitLibcallNames(const char **Names, const Triple &TT) {
Names[RTLIB::SINCOS_PPCF128] = nullptr;
}
- if (TT.getOS() != Triple::OpenBSD) {
+ if (!TT.isOSOpenBSD()) {
Names[RTLIB::STACKPROTECTOR_CHECK_FAIL] = "__stack_chk_fail";
} else {
// These are generally not available.
OpenPOWER on IntegriCloud