forked from OSchip/llvm-project
Get rid of casts. (NFC)
Differential Revision: https://reviews.llvm.org/D53709 llvm-svn: 345278
This commit is contained in:
parent
8fc7b5f922
commit
6d0b9047a7
|
@ -1402,10 +1402,10 @@ bool PlatformDarwin::SDKSupportsModules(SDKType desired_type,
|
||||||
if (last_path_component) {
|
if (last_path_component) {
|
||||||
const llvm::StringRef sdk_name = last_path_component.GetStringRef();
|
const llvm::StringRef sdk_name = last_path_component.GetStringRef();
|
||||||
|
|
||||||
if (!sdk_name.startswith(sdk_strings[(int)desired_type]))
|
if (!sdk_name.startswith(sdk_strings[desired_type]))
|
||||||
return false;
|
return false;
|
||||||
auto version_part =
|
auto version_part =
|
||||||
sdk_name.drop_front(strlen(sdk_strings[(int)desired_type]));
|
sdk_name.drop_front(strlen(sdk_strings[desired_type]));
|
||||||
version_part.consume_back(".sdk");
|
version_part.consume_back(".sdk");
|
||||||
|
|
||||||
llvm::VersionTuple version;
|
llvm::VersionTuple version;
|
||||||
|
|
|
@ -85,7 +85,7 @@ public:
|
||||||
static std::tuple<llvm::VersionTuple, llvm::StringRef>
|
static std::tuple<llvm::VersionTuple, llvm::StringRef>
|
||||||
ParseVersionBuildDir(llvm::StringRef str);
|
ParseVersionBuildDir(llvm::StringRef str);
|
||||||
|
|
||||||
enum class SDKType {
|
enum SDKType : unsigned {
|
||||||
MacOSX = 0,
|
MacOSX = 0,
|
||||||
iPhoneSimulator,
|
iPhoneSimulator,
|
||||||
iPhoneOS,
|
iPhoneOS,
|
||||||
|
|
Loading…
Reference in New Issue