r220158 - Use the triple's isiOS() method instead of checking the value directly. NFC.
Bob Wilson
bob.wilson at apple.com
Sat Oct 18 19:19:27 PDT 2014
Author: bwilson
Date: Sat Oct 18 21:19:27 2014
New Revision: 220158
URL: http://llvm.org/viewvc/llvm-project?rev=220158&view=rev
Log:
Use the triple's isiOS() method instead of checking the value directly. NFC.
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=220158&r1=220157&r2=220158&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Sat Oct 18 21:19:27 2014
@@ -3589,7 +3589,7 @@ public:
MaxVectorAlign = 256;
// The 64-bit iOS simulator uses the builtin bool type for Objective-C.
llvm::Triple T = llvm::Triple(Triple);
- if (T.getOS() == llvm::Triple::IOS)
+ if (T.isiOS())
UseSignedCharForObjCBool = false;
DescriptionString = "e-m:o-i64:64-f80:128-n8:16:32:64-S128";
}
More information about the cfe-commits
mailing list