revert between 56095 -> 55830 in arch
[AROS.git] / tools / crosstools / llvm / llvm-7.0.0.src-aros.diff
blob48dd986de06eb483b6c25cd220debe430062e7e0
1 diff -ruN llvm-7.0.0.src/include/llvm/ADT/Triple.h llvm-7.0.0.src-AROS/include/llvm/ADT/Triple.h
2 --- llvm-7.0.0.src/include/llvm/ADT/Triple.h 2018-07-06 01:41:17.000000000 +0200
3 +++ llvm-7.0.0.src-AROS/include/llvm/ADT/Triple.h 2018-09-27 22:05:03.000000000 +0200
4 @@ -151,6 +151,7 @@
5 enum OSType {
6 UnknownOS,
8 + AROS,
9 Ananas,
10 CloudABI,
11 Darwin,
12 @@ -437,6 +438,11 @@
13 return isOSVersionLT(Minor + 4, Micro, 0);
16 + ///
17 + bool isAROS() const {
18 + return getOS() == Triple::AROS;
19 + }
21 /// isMacOSX - Is this a Mac OS X triple. For legacy reasons, we support both
22 /// "darwin" and "osx" as OS X triples.
23 bool isMacOSX() const {
24 diff -ruN llvm-7.0.0.src/lib/Support/Triple.cpp llvm-7.0.0.src-AROS/lib/Support/Triple.cpp
25 --- llvm-7.0.0.src/lib/Support/Triple.cpp 2018-07-06 01:41:17.000000000 +0200
26 +++ llvm-7.0.0.src-AROS/lib/Support/Triple.cpp 2018-09-27 22:08:18.000000000 +0200
27 @@ -178,6 +178,7 @@
28 switch (Kind) {
29 case UnknownOS: return "unknown";
31 + case AROS: return "aros";
32 case Ananas: return "ananas";
33 case CloudABI: return "cloudabi";
34 case Darwin: return "darwin";
35 @@ -470,6 +471,7 @@
37 static Triple::OSType parseOS(StringRef OSName) {
38 return StringSwitch<Triple::OSType>(OSName)
39 + .StartsWith("aros", Triple::AROS)
40 .StartsWith("ananas", Triple::Ananas)
41 .StartsWith("cloudabi", Triple::CloudABI)
42 .StartsWith("darwin", Triple::Darwin)