diff --git a/llvm/include/llvm/ADT/Triple.h b/llvm/include/llvm/ADT/Triple.h --- a/llvm/include/llvm/ADT/Triple.h +++ b/llvm/include/llvm/ADT/Triple.h @@ -200,7 +200,6 @@ ELFIAMCU, TvOS, // Apple tvOS WatchOS, // Apple watchOS - DriverKit, // Apple DriverKit Mesa3D, Contiki, AMDPAL, // AMD PAL Runtime @@ -363,9 +362,6 @@ /// with WatchOS or generic triples. VersionTuple getWatchOSVersion() const; - /// Parse the version number as with getOSVersion. - VersionTuple getDriverKitVersion() const; - /// @} /// @name Direct Component Access /// @{ @@ -468,14 +464,11 @@ return getSubArch() == Triple::ARMSubArch_v7k; } - /// Is this an Apple DriverKit triple. - bool isDriverKit() const { return getOS() == Triple::DriverKit; } - bool isOSzOS() const { return getOS() == Triple::ZOS; } /// Is this a "Darwin" OS (macOS, iOS, tvOS or watchOS). bool isOSDarwin() const { - return isMacOSX() || isiOS() || isWatchOS() || isDriverKit(); + return isMacOSX() || isiOS() || isWatchOS(); } bool isSimulatorEnvironment() const { @@ -824,6 +817,12 @@ return getArch() == Triple::riscv32 || getArch() == Triple::riscv64; } + /// Tests whether the target is Sparc. + bool isSparc() const { + return getArch() == Triple::sparc || getArch() == Triple::sparcv9 || + getArch() == Triple::sparcel; + } + /// Tests whether the target is SystemZ. bool isSystemZ() const { return getArch() == Triple::systemz;