diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-02-01 01:14:13 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-02-01 01:14:13 +0000 |
commit | 2bffee2ee725047137d2523e31db9ecc7b246cbb (patch) | |
tree | c5f897132f5b06d9670fe9926edfd64494ae1f40 /lib/Target/X86/X86Subtarget.h | |
parent | e361d2eda14dcd102411721995ae8ed5afbe0c18 (diff) |
Patches to build EFI with Clang/LLVM. By Carl Norum.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.h')
-rw-r--r-- | lib/Target/X86/X86Subtarget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/X86/X86Subtarget.h b/lib/Target/X86/X86Subtarget.h index 95c438d678..48ceb21946 100644 --- a/lib/Target/X86/X86Subtarget.h +++ b/lib/Target/X86/X86Subtarget.h @@ -192,6 +192,10 @@ public: return Is64Bit && (isTargetMingw() || isTargetWindows()); } + bool isTargetEnvMacho() const { + return isTargetDarwin() || (TargetTriple.getEnvironment() == Triple::MachO); + } + bool isTargetWin32() const { return !Is64Bit && (isTargetMingw() || isTargetWindows()); } |