add place-holder directory for the a3000 wd533c93 scsi controller implementation.
[AROS.git] / tools / crosstools / llvm / llvm-3.9.0.src-aros.diff
blob95d635b51dc87090097a3c4b86292ab731a71c0c
1 diff -ruN llvm-3.9.0.src/include/llvm/ADT/Triple.h llvm-3.9.0.src.aros/include/llvm/ADT/Triple.h
2 --- llvm-3.9.0.src/include/llvm/ADT/Triple.h 2016-07-24 12:34:15.000000000 +0200
3 +++ llvm-3.9.0.src.aros/include/llvm/ADT/Triple.h 2016-11-20 21:47:37.000000000 +0100
4 @@ -140,6 +140,7 @@
5 enum OSType {
6 UnknownOS,
8 + AROS,
9 CloudABI,
10 Darwin,
11 DragonFly,
12 @@ -415,6 +416,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-3.9.0.src/lib/Support/Triple.cpp llvm-3.9.0.src.aros/lib/Support/Triple.cpp
25 --- llvm-3.9.0.src/lib/Support/Triple.cpp 2016-07-24 12:34:15.000000000 +0200
26 +++ llvm-3.9.0.src.aros/lib/Support/Triple.cpp 2016-11-20 21:47:37.000000000 +0100
27 @@ -164,6 +164,7 @@
28 switch (Kind) {
29 case UnknownOS: return "unknown";
31 + case AROS: return "aros";
32 case CloudABI: return "cloudabi";
33 case Darwin: return "darwin";
34 case DragonFly: return "dragonfly";
35 @@ -433,6 +434,7 @@
37 static Triple::OSType parseOS(StringRef OSName) {
38 return StringSwitch<Triple::OSType>(OSName)
39 + .StartsWith("aros", Triple::AROS)
40 .StartsWith("cloudabi", Triple::CloudABI)
41 .StartsWith("darwin", Triple::Darwin)
42 .StartsWith("dragonfly", Triple::DragonFly)