Fix a few default label in switch which covers all
authorEric Christopher <echristo@gmail.com>
Fri, 5 Dec 2014 19:09:02 +0000 (19:09 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 5 Dec 2014 19:09:02 +0000 (19:09 +0000)
enumeration values [-Werror,-Wcovered-switch-default]
warnings.

llvm-svn: 223499

lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp

index acf99be..b86909f 100644 (file)
@@ -1250,8 +1250,6 @@ PlatformDarwin::SDKSupportsModules (SDKType sdk_type, uint32_t major, uint32_t m
 {
     switch (sdk_type)
     {
-        default:
-            return false;
         case SDKType::MacOSX:
             if (major > 10 || (major == 10 && minor >= 10))
                 return true;
@@ -1366,8 +1364,6 @@ PlatformDarwin::GetSDKDirectoryForModules (SDKType sdk_type)
 {
     switch (sdk_type)
     {
-        default:
-            return FileSpec();
         case SDKType::MacOSX:
         case SDKType::iPhoneSimulator:
         case SDKType::iPhoneOS:
@@ -1380,8 +1376,6 @@ PlatformDarwin::GetSDKDirectoryForModules (SDKType sdk_type)
     
     switch (sdk_type)
     {
-        default:
-            return FileSpec();
         case SDKType::MacOSX:
             sdks_spec.AppendPathComponent("MacOSX.platform");
             break;