diff options
Diffstat (limited to 'llvm/include/llvm/TextAPI/Target.h')
-rw-r--r-- | llvm/include/llvm/TextAPI/Target.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/include/llvm/TextAPI/Target.h b/llvm/include/llvm/TextAPI/Target.h index c2588b9d5a21..fbb76295f706 100644 --- a/llvm/include/llvm/TextAPI/Target.h +++ b/llvm/include/llvm/TextAPI/Target.h @@ -9,13 +9,15 @@ #ifndef LLVM_TEXTAPI_TARGET_H #define LLVM_TEXTAPI_TARGET_H -#include "llvm/ADT/Triple.h" #include "llvm/Support/Error.h" #include "llvm/TextAPI/Architecture.h" #include "llvm/TextAPI/ArchitectureSet.h" #include "llvm/TextAPI/Platform.h" namespace llvm { + +class Triple; + namespace MachO { // This is similar to a llvm Triple, but the triple doesn't have all the @@ -24,17 +26,17 @@ namespace MachO { class Target { public: Target() = default; - Target(Architecture Arch, PlatformKind Platform) + Target(Architecture Arch, PlatformType Platform) : Arch(Arch), Platform(Platform) {} explicit Target(const llvm::Triple &Triple) - : Arch(mapToArchitecture(Triple)), Platform(mapToPlatformKind(Triple)) {} + : Arch(mapToArchitecture(Triple)), Platform(mapToPlatformType(Triple)) {} static llvm::Expected<Target> create(StringRef Target); operator std::string() const; Architecture Arch; - PlatformKind Platform; + PlatformType Platform; }; inline bool operator==(const Target &LHS, const Target &RHS) { |