llvm.org GIT mirror llvm / 24cfd06
Target/X86: Add getTargetTriple() accessor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129812 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 9 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
164164 bool isUnalignedMemAccessFast() const { return IsUAMemFast; }
165165 bool hasVectorUAMem() const { return HasVectorUAMem; }
166166
167 const Triple &getTargetTriple() const { return TargetTriple; }
168
167169 bool isTargetDarwin() const { return TargetTriple.getOS() == Triple::Darwin; }
168170 bool isTargetFreeBSD() const { return TargetTriple.getOS() == Triple::FreeBSD; }
169171 bool isTargetSolaris() const { return TargetTriple.getOS() == Triple::Solaris; }