Created
October 29, 2015 14:38
-
-
Save carlokok/ece524ce75f069a4da1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h | |
index 59b6214..ad9fe06 100644 | |
--- a/include/llvm/ADT/Triple.h | |
+++ b/include/llvm/ADT/Triple.h | |
@@ -429,7 +429,7 @@ public: | |
/// isOSDarwin - Is this a "Darwin" OS (OS X, iOS, or watchOS). | |
bool isOSDarwin() const { | |
- return isMacOSX() || isiOS() || isWatchOS() || isTvOS(); | |
+ return isMacOSX() || isiOS() || isWatchOS(); | |
} | |
bool isOSNetBSD() const { | |
diff --git a/lib/MC/MCObjectFileInfo.cpp b/lib/MC/MCObjectFileInfo.cpp | |
index 0ed4b6f..4c51c83 100644 | |
--- a/lib/MC/MCObjectFileInfo.cpp | |
+++ b/lib/MC/MCObjectFileInfo.cpp | |
@@ -38,7 +38,7 @@ static bool useCompactUnwind(const Triple &T) { | |
return true; | |
// And the iOS simulator. | |
- if ((T.isiOS() || T.isTvOS()) && | |
+ if (T.isiOS() && | |
(T.getArch() == Triple::x86_64 || T.getArch() == Triple::x86)) | |
return true; | |
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp | |
index 888400e..9d5f145 100644 | |
--- a/lib/Support/Triple.cpp | |
+++ b/lib/Support/Triple.cpp | |
@@ -422,8 +422,6 @@ static Triple::OSType parseOS(StringRef OSName) { | |
.StartsWith("linux", Triple::Linux) | |
.StartsWith("lv2", Triple::Lv2) | |
.StartsWith("macosx", Triple::MacOSX) | |
- .StartsWith ("watchos", Triple::WatchOS) | |
- .StartsWith ("tvos", Triple::TvOS) | |
.StartsWith("netbsd", Triple::NetBSD) | |
.StartsWith("openbsd", Triple::OpenBSD) | |
.StartsWith("solaris", Triple::Solaris) | |
diff --git a/lib/Target/AArch64/AArch64Subtarget.h b/lib/Target/AArch64/AArch64Subtarget.h | |
index 3de411a..78af288 100644 | |
--- a/lib/Target/AArch64/AArch64Subtarget.h | |
+++ b/lib/Target/AArch64/AArch64Subtarget.h | |
@@ -120,7 +120,7 @@ public: | |
bool isLittleEndian() const { return IsLittle; } | |
bool isTargetDarwin() const { return TargetTriple.isOSDarwin(); } | |
- bool isTargetIOS() const { return TargetTriple.isiOS() || TargetTriple.isTvOS(); } | |
+ bool isTargetIOS() const { return TargetTriple.isiOS(); } | |
bool isTargetLinux() const { return TargetTriple.isOSLinux(); } | |
bool isTargetWindows() const { return TargetTriple.isOSWindows(); } | |
bool isTargetAndroid() const { return TargetTriple.isAndroid(); } | |
diff --git a/lib/Target/ARM/ARMSubtarget.cpp b/lib/Target/ARM/ARMSubtarget.cpp | |
index 0b7e450..50eb378 100644 | |
--- a/lib/Target/ARM/ARMSubtarget.cpp | |
+++ b/lib/Target/ARM/ARMSubtarget.cpp | |
@@ -301,7 +301,8 @@ unsigned ARMSubtarget::getMispredictionPenalty() const { | |
} | |
bool ARMSubtarget::hasSinCos() const { | |
- return getTargetTriple().isiOS() && !getTargetTriple().isOSVersionLT(7, 0) || getTargetTriple().isWatchOS(); | |
+ return isTargetWatchOS() || | |
+ (isTargetIOS() && !getTargetTriple().isOSVersionLT(7, 0)); | |
} | |
bool ARMSubtarget::enableMachineScheduler() const { | |
diff --git a/lib/Target/ARM/ARMSubtarget.h b/lib/Target/ARM/ARMSubtarget.h | |
index 2f555e3..66b56d1 100644 | |
--- a/lib/Target/ARM/ARMSubtarget.h | |
+++ b/lib/Target/ARM/ARMSubtarget.h | |
@@ -389,7 +389,7 @@ public: | |
TargetTriple.getEnvironment() == Triple::EABIHF || | |
TargetTriple.getEnvironment() == Triple::GNUEABIHF || | |
isTargetAndroid()) && | |
- !isTargetIOS() && !isTargetWindows(); | |
+ !isTargetDarwin() && !isTargetWindows(); | |
} | |
bool isTargetHardFloat() const { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment