summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Driver/ToolChains.h')
-rw-r--r--clang/lib/Driver/ToolChains.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/clang/lib/Driver/ToolChains.h b/clang/lib/Driver/ToolChains.h
index 071a36774d1..c454db553bb 100644
--- a/clang/lib/Driver/ToolChains.h
+++ b/clang/lib/Driver/ToolChains.h
@@ -134,13 +134,10 @@ protected:
/// @{
/// \brief Check whether the target triple's architecture is 64-bits.
- bool isTarget64Bit() const {
- return (getTriple().getArch() == llvm::Triple::x86_64 ||
- getTriple().getArch() == llvm::Triple::ppc64);
- }
+ bool isTarget64Bit() const { return getTriple().isArch64Bit(); }
+
/// \brief Check whether the target triple's architecture is 32-bits.
- /// FIXME: This should likely do more than just negate the 64-bit query.
- bool isTarget32Bit() const { return !isTarget64Bit(); }
+ bool isTarget32Bit() const { return getTriple().isArch32Bit(); }
/// @}
};
OpenPOWER on IntegriCloud