diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-02-17 12:23:50 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-02-17 12:23:50 +0000 |
commit | 0544fe728784b457812d2bf7266a55f2f5f71943 (patch) | |
tree | b14145fa559f5612553f51e90bd9ff6ea5587f77 /llvm/lib/Target/X86/X86Subtarget.h | |
parent | 22c7a79a1da4abd46e1e2f9cbe21f4242853d8dc (diff) | |
download | bcm5719-llvm-0544fe728784b457812d2bf7266a55f2f5f71943.tar.gz bcm5719-llvm-0544fe728784b457812d2bf7266a55f2f5f71943.zip |
Fix whitespace.
llvm-svn: 125746
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.h')
-rw-r--r-- | llvm/lib/Target/X86/X86Subtarget.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h index 48ceb21946a..04ceac4b05d 100644 --- a/llvm/lib/Target/X86/X86Subtarget.h +++ b/llvm/lib/Target/X86/X86Subtarget.h @@ -103,7 +103,7 @@ protected: /// Max. memset / memcpy size that is turned into rep/movs, rep/stos ops. /// unsigned MaxInlineSizeThreshold; - + /// TargetTriple - What processor and OS we're targeting. Triple TargetTriple; @@ -166,23 +166,23 @@ public: bool hasVectorUAMem() const { return HasVectorUAMem; } bool isTargetDarwin() const { return TargetTriple.getOS() == Triple::Darwin; } - + // ELF is a reasonably sane default and the only other X86 targets we // support are Darwin and Windows. Just use "not those". - bool isTargetELF() const { + bool isTargetELF() const { return !isTargetDarwin() && !isTargetWindows() && !isTargetCygMing(); } bool isTargetLinux() const { return TargetTriple.getOS() == Triple::Linux; } bool isTargetWindows() const { return TargetTriple.getOS() == Triple::Win32; } - bool isTargetMingw() const { + bool isTargetMingw() const { return TargetTriple.getOS() == Triple::MinGW32 || TargetTriple.getOS() == Triple::MinGW64; } bool isTargetCygwin() const { return TargetTriple.getOS() == Triple::Cygwin; } bool isTargetCygMing() const { return isTargetMingw() || isTargetCygwin(); } - + /// isTargetCOFF - Return true if this is any COFF/Windows target variant. bool isTargetCOFF() const { return isTargetMingw() || isTargetCygwin() || isTargetWindows(); |