summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets/Sparc.h
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/Sparc.h
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/Sparc.h')
-rw-r--r--clang/lib/Basic/Targets/Sparc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/Targets/Sparc.h b/clang/lib/Basic/Targets/Sparc.h
index af2189f2146..5ae305bffb4 100644
--- a/clang/lib/Basic/Targets/Sparc.h
+++ b/clang/lib/Basic/Targets/Sparc.h
@@ -199,7 +199,7 @@ public:
LongWidth = LongAlign = PointerWidth = PointerAlign = 64;
// OpenBSD uses long long for int64_t and intmax_t.
- if (getTriple().getOS() == llvm::Triple::OpenBSD)
+ if (getTriple().isOSOpenBSD())
IntMaxType = SignedLongLong;
else
IntMaxType = SignedLong;
OpenPOWER on IntegriCloud