summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets/AArch64.cpp
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2018-12-20 13:09:30 +0000
committerMichal Gorny <mgorny@gentoo.org>2018-12-20 13:09:30 +0000
commit5a409d0e301849e67beeee5e7d50dc4e931a0f77 (patch)
tree492417f8ca391d43c9b226d1863dc36bc43beb61 /clang/lib/Basic/Targets/AArch64.cpp
parent22ca9c628a2f2c1421105a48284329d70a4d572d (diff)
downloadbcm5719-llvm-5a409d0e301849e67beeee5e7d50dc4e931a0f77.tar.gz
bcm5719-llvm-5a409d0e301849e67beeee5e7d50dc4e931a0f77.zip
Replace getOS() == llvm::Triple::*BSD with isOS*BSD() [NFCI]
Replace multiple comparisons of getOS() value with FreeBSD, NetBSD, OpenBSD and DragonFly with matching isOS*BSD() methods. This should improve the consistency of coding style without changing the behavior. Direct getOS() comparisons were left whenever used in switch or switch- like context. Differential Revision: https://reviews.llvm.org/D55916 llvm-svn: 349752
Diffstat (limited to 'clang/lib/Basic/Targets/AArch64.cpp')
-rw-r--r--clang/lib/Basic/Targets/AArch64.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Basic/Targets/AArch64.cpp b/clang/lib/Basic/Targets/AArch64.cpp
index 376cba6e455..62919a02dcb 100644
--- a/clang/lib/Basic/Targets/AArch64.cpp
+++ b/clang/lib/Basic/Targets/AArch64.cpp
@@ -37,11 +37,11 @@ const Builtin::Info AArch64TargetInfo::BuiltinInfo[] = {
AArch64TargetInfo::AArch64TargetInfo(const llvm::Triple &Triple,
const TargetOptions &Opts)
: TargetInfo(Triple), ABI("aapcs") {
- if (getTriple().getOS() == llvm::Triple::OpenBSD) {
+ if (getTriple().isOSOpenBSD()) {
Int64Type = SignedLongLong;
IntMaxType = SignedLongLong;
} else {
- if (!getTriple().isOSDarwin() && getTriple().getOS() != llvm::Triple::NetBSD)
+ if (!getTriple().isOSDarwin() && !getTriple().isOSNetBSD())
WCharType = UnsignedInt;
Int64Type = SignedLong;
OpenPOWER on IntegriCloud