More Linux warnings fixes (remove default labels as needed):

- as per http://llvm.org/docs/CodingStandards.html#don-t-use-default-labels-in-fully-covered-switches-over-enumerations

Patch by Matt Kopec!

llvm-svn: 169633
This commit is contained in:
Daniel Malea 2012-12-07 20:51:09 +00:00
parent 4ec32d3d90
commit 89660bf795
31 changed files with 0 additions and 162 deletions

View File

@ -388,7 +388,6 @@ SBValue::GetValueType ()
case eValueTypeRegister: log->Printf ("SBValue(%p)::GetValueType () => eValueTypeRegister", value_sp.get()); break;
case eValueTypeRegisterSet: log->Printf ("SBValue(%p)::GetValueType () => eValueTypeRegisterSet", value_sp.get()); break;
case eValueTypeConstResult: log->Printf ("SBValue(%p)::GetValueType () => eValueTypeConstResult", value_sp.get()); break;
default: log->Printf ("SBValue(%p)::GetValueType () => %i ???", value_sp.get(), result); break;
}
}
return result;

View File

@ -374,7 +374,6 @@ Communication::ReadThread (void *p)
case eConnectionStatusLostConnection: // Lost connection while connected to a valid connection
done = true;
// Fall through...
default:
case eConnectionStatusError: // Check GetError() for details
case eConnectionStatusTimedOut: // Request timed out
if (log)

View File

@ -1928,7 +1928,6 @@ DataExtractor::PutToLog
switch (type)
{
default:
case TypeUInt8: sstr.Printf (format ? format : " %2.2x", GetU8(&offset)); break;
case TypeChar:
{

View File

@ -587,10 +587,6 @@ EmulateInstruction::Context::Dump (Stream &strm,
case eInfoTypeNoArgs:
break;
default:
strm.Printf (" (unknown <info_type>)");
break;
}
}

View File

@ -450,7 +450,6 @@ RegisterValue::SetValueFromCString (const RegisterInfo *reg_info, const char *va
const uint32_t byte_size = reg_info->byte_size;
switch (reg_info->encoding)
{
default:
case eEncodingInvalid:
error.SetErrorString ("Invalid encoding.");
break;
@ -637,7 +636,6 @@ RegisterValue::CopyValue (const RegisterValue &rhs)
m_type = rhs.m_type;
switch (m_type)
{
default:
case eTypeInvalid:
return false;
case eTypeUInt8: m_data.uint8 = rhs.m_data.uint8; break;

View File

@ -169,7 +169,6 @@ Scalar::GetByteSize() const
{
switch (m_type)
{
default:
case e_void:
break;
case e_sint: return sizeof(m_data.sint);
@ -190,7 +189,6 @@ Scalar::IsZero() const
{
switch (m_type)
{
default:
case e_void:
break;
case e_sint: return m_data.sint == 0;
@ -215,7 +213,6 @@ Scalar::GetValue (Stream *s, bool show_type) const
switch (m_type)
{
case e_void:
default:
break;
case e_sint: s->Printf("%i", m_data.sint); break;
case e_uint: s->Printf("0x%8.8x", m_data.uint); break;
@ -234,8 +231,6 @@ Scalar::GetTypeAsCString() const
{
switch (m_type)
{
default:
break;
case e_void: return "void";
case e_sint: return "int";
case e_uint: return "unsigned int";
@ -358,7 +353,6 @@ Scalar::Promote(Scalar::Type type)
case e_sint:
switch (type)
{
default:
case e_void: break;
case e_sint: success = true; break;
case e_uint: m_data.uint = m_data.sint; success = true; break;
@ -375,7 +369,6 @@ Scalar::Promote(Scalar::Type type)
case e_uint:
switch (type)
{
default:
case e_void:
case e_sint: break;
case e_uint: success = true; break;
@ -392,7 +385,6 @@ Scalar::Promote(Scalar::Type type)
case e_slong:
switch (type)
{
default:
case e_void:
case e_sint:
case e_uint: break;
@ -409,7 +401,6 @@ Scalar::Promote(Scalar::Type type)
case e_ulong:
switch (type)
{
default:
case e_void:
case e_sint:
case e_uint:
@ -426,7 +417,6 @@ Scalar::Promote(Scalar::Type type)
case e_slonglong:
switch (type)
{
default:
case e_void:
case e_sint:
case e_uint:
@ -443,7 +433,6 @@ Scalar::Promote(Scalar::Type type)
case e_ulonglong:
switch (type)
{
default:
case e_void:
case e_sint:
case e_uint:
@ -460,7 +449,6 @@ Scalar::Promote(Scalar::Type type)
case e_float:
switch (type)
{
default:
case e_void:
case e_sint:
case e_uint:
@ -477,7 +465,6 @@ Scalar::Promote(Scalar::Type type)
case e_double:
switch (type)
{
default:
case e_void:
case e_sint:
case e_uint:
@ -494,7 +481,6 @@ Scalar::Promote(Scalar::Type type)
case e_long_double:
switch (type)
{
default:
case e_void:
case e_sint:
case e_uint:
@ -519,7 +505,6 @@ Scalar::GetValueTypeAsCString (Scalar::Type type)
{
switch (type)
{
default: break;
case e_void: return "void";
case e_sint: return "int";
case e_uint: return "unsigned int";
@ -583,7 +568,6 @@ Scalar::Cast(Scalar::Type type)
case e_sint:
switch (type)
{
default:
case e_void: break;
case e_sint: success = true; break;
case e_uint: m_data.uint = m_data.sint; success = true; break;
@ -600,7 +584,6 @@ Scalar::Cast(Scalar::Type type)
case e_uint:
switch (type)
{
default:
case e_void:
case e_sint: m_data.sint = m_data.uint; success = true; break;
case e_uint: success = true; break;
@ -617,7 +600,6 @@ Scalar::Cast(Scalar::Type type)
case e_slong:
switch (type)
{
default:
case e_void:
case e_sint: m_data.sint = m_data.slong; success = true; break;
case e_uint: m_data.uint = m_data.slong; success = true; break;
@ -634,7 +616,6 @@ Scalar::Cast(Scalar::Type type)
case e_ulong:
switch (type)
{
default:
case e_void:
case e_sint: m_data.sint = m_data.ulong; success = true; break;
case e_uint: m_data.uint = m_data.ulong; success = true; break;
@ -651,7 +632,6 @@ Scalar::Cast(Scalar::Type type)
case e_slonglong:
switch (type)
{
default:
case e_void:
case e_sint: m_data.sint = m_data.slonglong; success = true; break;
case e_uint: m_data.uint = m_data.slonglong; success = true; break;
@ -668,7 +648,6 @@ Scalar::Cast(Scalar::Type type)
case e_ulonglong:
switch (type)
{
default:
case e_void:
case e_sint: m_data.sint = m_data.ulonglong; success = true; break;
case e_uint: m_data.uint = m_data.ulonglong; success = true; break;
@ -685,7 +664,6 @@ Scalar::Cast(Scalar::Type type)
case e_float:
switch (type)
{
default:
case e_void:
case e_sint: m_data.sint = m_data.flt; success = true; break;
case e_uint: m_data.uint = m_data.flt; success = true; break;
@ -702,7 +680,6 @@ Scalar::Cast(Scalar::Type type)
case e_double:
switch (type)
{
default:
case e_void:
case e_sint: m_data.sint = m_data.dbl; success = true; break;
case e_uint: m_data.uint = m_data.dbl; success = true; break;
@ -719,7 +696,6 @@ Scalar::Cast(Scalar::Type type)
case e_long_double:
switch (type)
{
default:
case e_void:
case e_sint: m_data.sint = m_data.ldbl; success = true; break;
case e_uint: m_data.uint = m_data.ldbl; success = true; break;
@ -744,7 +720,6 @@ Scalar::SInt(int fail_value) const
{
switch (m_type)
{
default:
case e_void: break;
case e_sint: return m_data.sint;
case e_uint: return (int)m_data.uint;
@ -764,7 +739,6 @@ Scalar::UInt(unsigned int fail_value) const
{
switch (m_type)
{
default:
case e_void: break;
case e_sint: return (unsigned int)m_data.sint;
case e_uint: return (unsigned int)m_data.uint;
@ -785,7 +759,6 @@ Scalar::SLong(long fail_value) const
{
switch (m_type)
{
default:
case e_void: break;
case e_sint: return (long)m_data.sint;
case e_uint: return (long)m_data.uint;
@ -807,7 +780,6 @@ Scalar::ULong(unsigned long fail_value) const
{
switch (m_type)
{
default:
case e_void: break;
case e_sint: return (unsigned long)m_data.sint;
case e_uint: return (unsigned long)m_data.uint;
@ -827,7 +799,6 @@ Scalar::GetRawBits64(uint64_t fail_value) const
{
switch (m_type)
{
default:
case e_void:
break;
@ -880,7 +851,6 @@ Scalar::SLongLong(long long fail_value) const
{
switch (m_type)
{
default:
case e_void: break;
case e_sint: return (long long)m_data.sint;
case e_uint: return (long long)m_data.uint;
@ -901,7 +871,6 @@ Scalar::ULongLong(unsigned long long fail_value) const
{
switch (m_type)
{
default:
case e_void: break;
case e_sint: return (unsigned long long)m_data.sint;
case e_uint: return (unsigned long long)m_data.uint;
@ -922,7 +891,6 @@ Scalar::Float(float fail_value) const
{
switch (m_type)
{
default:
case e_void: break;
case e_sint: return (float)m_data.sint;
case e_uint: return (float)m_data.uint;
@ -943,7 +911,6 @@ Scalar::Double(double fail_value) const
{
switch (m_type)
{
default:
case e_void: break;
case e_sint: return (double)m_data.sint;
case e_uint: return (double)m_data.uint;
@ -964,7 +931,6 @@ Scalar::LongDouble(long double fail_value) const
{
switch (m_type)
{
default:
case e_void: break;
case e_sint: return (long double)m_data.sint;
case e_uint: return (long double)m_data.uint;
@ -990,7 +956,6 @@ Scalar::operator+= (const Scalar& rhs)
{
switch (m_type)
{
default:
case e_void: break;
case e_sint: m_data.sint = a->m_data.sint + b->m_data.sint; break;
case e_uint: m_data.uint = a->m_data.uint + b->m_data.uint; break;
@ -1011,7 +976,6 @@ Scalar::operator<<= (const Scalar& rhs)
{
switch (m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1022,7 +986,6 @@ Scalar::operator<<= (const Scalar& rhs)
case e_sint:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1041,7 +1004,6 @@ Scalar::operator<<= (const Scalar& rhs)
case e_uint:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1060,7 +1022,6 @@ Scalar::operator<<= (const Scalar& rhs)
case e_slong:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1079,7 +1040,6 @@ Scalar::operator<<= (const Scalar& rhs)
case e_ulong:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1097,7 +1057,6 @@ Scalar::operator<<= (const Scalar& rhs)
case e_slonglong:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1116,7 +1075,6 @@ Scalar::operator<<= (const Scalar& rhs)
case e_ulonglong:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1140,7 +1098,6 @@ Scalar::ShiftRightLogical(const Scalar& rhs)
{
switch (m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1152,7 +1109,6 @@ Scalar::ShiftRightLogical(const Scalar& rhs)
case e_uint:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1172,7 +1128,6 @@ Scalar::ShiftRightLogical(const Scalar& rhs)
case e_ulong:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1192,7 +1147,6 @@ Scalar::ShiftRightLogical(const Scalar& rhs)
case e_ulonglong:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1217,7 +1171,6 @@ Scalar::operator>>= (const Scalar& rhs)
{
switch (m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1228,7 +1181,6 @@ Scalar::operator>>= (const Scalar& rhs)
case e_sint:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1247,7 +1199,6 @@ Scalar::operator>>= (const Scalar& rhs)
case e_uint:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1266,7 +1217,6 @@ Scalar::operator>>= (const Scalar& rhs)
case e_slong:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1285,7 +1235,6 @@ Scalar::operator>>= (const Scalar& rhs)
case e_ulong:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1303,7 +1252,6 @@ Scalar::operator>>= (const Scalar& rhs)
case e_slonglong:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1322,7 +1270,6 @@ Scalar::operator>>= (const Scalar& rhs)
case e_ulonglong:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1347,7 +1294,6 @@ Scalar::operator&= (const Scalar& rhs)
{
switch (m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1358,7 +1304,6 @@ Scalar::operator&= (const Scalar& rhs)
case e_sint:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1377,7 +1322,6 @@ Scalar::operator&= (const Scalar& rhs)
case e_uint:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1396,7 +1340,6 @@ Scalar::operator&= (const Scalar& rhs)
case e_slong:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1415,7 +1358,6 @@ Scalar::operator&= (const Scalar& rhs)
case e_ulong:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1433,7 +1375,6 @@ Scalar::operator&= (const Scalar& rhs)
case e_slonglong:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1452,7 +1393,6 @@ Scalar::operator&= (const Scalar& rhs)
case e_ulonglong:
switch (rhs.m_type)
{
default:
case e_void:
case e_float:
case e_double:
@ -1478,7 +1418,6 @@ Scalar::AbsoluteValue()
{
switch (m_type)
{
default:
case e_void:
break;
@ -1513,7 +1452,6 @@ Scalar::UnaryNegate()
{
switch (m_type)
{
default:
case e_void: break;
case e_sint: m_data.sint = -m_data.sint; return true;
case e_uint: m_data.uint = -m_data.uint; return true;
@ -1540,7 +1478,6 @@ Scalar::OnesComplement()
case e_slonglong: m_data.slonglong = ~m_data.slonglong; return true;
case e_ulonglong: m_data.ulonglong = ~m_data.ulonglong; return true;
default:
case e_void:
case e_float:
case e_double:
@ -1562,7 +1499,6 @@ lldb_private::operator+ (const Scalar& lhs, const Scalar& rhs)
{
switch (result.m_type)
{
default:
case Scalar::e_void: break;
case Scalar::e_sint: result.m_data.sint = a->m_data.sint + b->m_data.sint; break;
case Scalar::e_uint: result.m_data.uint = a->m_data.uint + b->m_data.uint; break;
@ -1590,7 +1526,6 @@ lldb_private::operator- (const Scalar& lhs, const Scalar& rhs)
{
switch (result.m_type)
{
default:
case Scalar::e_void: break;
case Scalar::e_sint: result.m_data.sint = a->m_data.sint - b->m_data.sint; break;
case Scalar::e_uint: result.m_data.uint = a->m_data.uint - b->m_data.uint; break;
@ -1617,7 +1552,6 @@ lldb_private::operator/ (const Scalar& lhs, const Scalar& rhs)
{
switch (result.m_type)
{
default:
case Scalar::e_void: break;
case Scalar::e_sint: if (b->m_data.sint != 0) { result.m_data.sint = a->m_data.sint/ b->m_data.sint; return result; } break;
@ -1648,7 +1582,6 @@ lldb_private::operator* (const Scalar& lhs, const Scalar& rhs)
{
switch (result.m_type)
{
default:
case Scalar::e_void: break;
case Scalar::e_sint: result.m_data.sint = a->m_data.sint * b->m_data.sint; break;
case Scalar::e_uint: result.m_data.uint = a->m_data.uint * b->m_data.uint; break;
@ -1682,7 +1615,6 @@ lldb_private::operator& (const Scalar& lhs, const Scalar& rhs)
case Scalar::e_slonglong: result.m_data.slonglong = a->m_data.slonglong & b->m_data.slonglong; break;
case Scalar::e_ulonglong: result.m_data.ulonglong = a->m_data.ulonglong & b->m_data.ulonglong; break;
default:
case Scalar::e_void:
case Scalar::e_float:
case Scalar::e_double:
@ -1713,7 +1645,6 @@ lldb_private::operator| (const Scalar& lhs, const Scalar& rhs)
case Scalar::e_slonglong: result.m_data.slonglong = a->m_data.slonglong | b->m_data.slonglong; break;
case Scalar::e_ulonglong: result.m_data.ulonglong = a->m_data.ulonglong | b->m_data.ulonglong; break;
default:
case Scalar::e_void:
case Scalar::e_float:
case Scalar::e_double:
@ -1744,7 +1675,6 @@ lldb_private::operator% (const Scalar& lhs, const Scalar& rhs)
case Scalar::e_slonglong: result.m_data.slonglong = a->m_data.slonglong % b->m_data.slonglong; break;
case Scalar::e_ulonglong: result.m_data.ulonglong = a->m_data.ulonglong % b->m_data.ulonglong; break;
default:
case Scalar::e_void:
case Scalar::e_float:
case Scalar::e_double:
@ -1775,7 +1705,6 @@ lldb_private::operator^ (const Scalar& lhs, const Scalar& rhs)
case Scalar::e_slonglong: result.m_data.slonglong = a->m_data.slonglong ^ b->m_data.slonglong; break;
case Scalar::e_ulonglong: result.m_data.ulonglong = a->m_data.ulonglong ^ b->m_data.ulonglong; break;
default:
case Scalar::e_void:
case Scalar::e_float:
case Scalar::e_double:
@ -1822,7 +1751,6 @@ Scalar::SetValueFromCString (const char *value_str, Encoding encoding, uint32_t
bool success = false;
switch (encoding)
{
default:
case eEncodingInvalid:
error.SetErrorString ("Invalid encoding.");
break;
@ -1933,7 +1861,6 @@ Scalar::SignExtend (uint32_t sign_bit_pos)
{
switch (m_type)
{
default:
case Scalar::e_void:
case Scalar::e_float:
case Scalar::e_double:
@ -2031,7 +1958,6 @@ Scalar::ExtractBitfield (uint32_t bit_size,
uint32_t lsbit = bit_offset;
switch (m_type)
{
default:
case Scalar::e_void:
break;
@ -2111,7 +2037,6 @@ lldb_private::operator== (const Scalar& lhs, const Scalar& rhs)
const Scalar* b;
switch (PromoteToMaxType(lhs, rhs, temp_value, a, b))
{
default:
case Scalar::e_void: break;
case Scalar::e_sint: return a->m_data.sint == b->m_data.sint;
case Scalar::e_uint: return a->m_data.uint == b->m_data.uint;
@ -2138,7 +2063,6 @@ lldb_private::operator!= (const Scalar& lhs, const Scalar& rhs)
const Scalar* b;
switch (PromoteToMaxType(lhs, rhs, temp_value, a, b))
{
default:
case Scalar::e_void: break;
case Scalar::e_sint: return a->m_data.sint != b->m_data.sint;
case Scalar::e_uint: return a->m_data.uint != b->m_data.uint;
@ -2164,7 +2088,6 @@ lldb_private::operator< (const Scalar& lhs, const Scalar& rhs)
const Scalar* b;
switch (PromoteToMaxType(lhs, rhs, temp_value, a, b))
{
default:
case Scalar::e_void: break;
case Scalar::e_sint: return a->m_data.sint < b->m_data.sint;
case Scalar::e_uint: return a->m_data.uint < b->m_data.uint;
@ -2190,7 +2113,6 @@ lldb_private::operator<= (const Scalar& lhs, const Scalar& rhs)
const Scalar* b;
switch (PromoteToMaxType(lhs, rhs, temp_value, a, b))
{
default:
case Scalar::e_void: break;
case Scalar::e_sint: return a->m_data.sint <= b->m_data.sint;
case Scalar::e_uint: return a->m_data.uint <= b->m_data.uint;
@ -2217,7 +2139,6 @@ lldb_private::operator> (const Scalar& lhs, const Scalar& rhs)
const Scalar* b;
switch (PromoteToMaxType(lhs, rhs, temp_value, a, b))
{
default:
case Scalar::e_void: break;
case Scalar::e_sint: return a->m_data.sint > b->m_data.sint;
case Scalar::e_uint: return a->m_data.uint > b->m_data.uint;
@ -2243,7 +2164,6 @@ lldb_private::operator>= (const Scalar& lhs, const Scalar& rhs)
const Scalar* b;
switch (PromoteToMaxType(lhs, rhs, temp_value, a, b))
{
default:
case Scalar::e_void: break;
case Scalar::e_sint: return a->m_data.sint >= b->m_data.sint;
case Scalar::e_uint: return a->m_data.uint >= b->m_data.uint;

View File

@ -83,7 +83,6 @@ lldb_private::StateIsRunningState (StateType state)
case eStateCrashed:
case eStateExited:
case eStateSuspended:
default:
break;
}
return false;
@ -101,7 +100,6 @@ lldb_private::StateIsStoppedState (StateType state, bool must_exist)
case eStateRunning:
case eStateStepping:
case eStateDetached:
default:
break;
case eStateUnloaded:

View File

@ -156,7 +156,6 @@ Value::ValueOf(ExecutionContext *exe_ctx, clang::ASTContext *ast_context)
{
switch (m_context_type)
{
default:
case eContextTypeInvalid:
case eContextTypeClangType: // clang::Type *
case eContextTypeRegisterInfo: // RegisterInfo *
@ -177,7 +176,6 @@ Value::GetValueByteSize (clang::ASTContext *ast_context, Error *error_ptr)
switch (m_context_type)
{
default:
case eContextTypeInvalid:
// If we have no context, there is no way to know how much memory to read
if (error_ptr)
@ -244,7 +242,6 @@ Value::GetClangType ()
{
switch (m_context_type)
{
default:
case eContextTypeInvalid:
break;
@ -273,7 +270,6 @@ Value::GetValueDefaultFormat ()
{
switch (m_context_type)
{
default:
case eContextTypeInvalid:
break;

View File

@ -420,9 +420,6 @@ ValueObject::GetLocationAsCString ()
switch (m_value.GetValueType())
{
default:
break;
case Value::eValueTypeScalar:
case Value::eValueTypeVector:
if (m_value.GetContextType() == Value::eContextTypeRegisterInfo)
@ -926,7 +923,6 @@ ValueObject::GetPointeeData (DataExtractor& data,
}
break;
case eAddressTypeInvalid:
default:
break;
}
}
@ -1524,9 +1520,6 @@ ValueObject::DumpPrintableRepresentation(Stream& s,
case eValueObjectRepresentationStyleType:
return_value = GetTypeName().AsCString();
break;
default:
break;
}
if (!return_value)
@ -3674,7 +3667,6 @@ ValueObject::AddressOf (Error &error)
{
switch (address_type)
{
default:
case eAddressTypeInvalid:
{
StreamString expr_path_strm;

View File

@ -164,7 +164,6 @@ ValueObjectChild::UpdateValue ()
m_value.SetValueType(Value::eValueTypeHostAddress);
break;
case eAddressTypeInvalid:
default:
// TODO: does this make sense?
m_value.SetValueType(Value::eValueTypeScalar);
break;

View File

@ -219,7 +219,6 @@ ValueObjectConstResult::ValueObjectConstResult
//m_value.SetValueType(Value::eValueTypeHostAddress);
switch (address_type)
{
default:
case eAddressTypeInvalid: m_value.SetValueType(Value::eValueTypeScalar); break;
case eAddressTypeFile: m_value.SetValueType(Value::eValueTypeFileAddress); break;
case eAddressTypeLoad: m_value.SetValueType(Value::eValueTypeLoadAddress); break;

View File

@ -938,7 +938,6 @@ FileSpec::EnumerateDirectory
switch (result)
{
default:
case eEnumerateDirectoryResultNext:
// Enumerate next entry in the current directory. We just
// exit this switch and will continue enumerating the

View File

@ -1093,9 +1093,6 @@ Host::GetLLDBPath (PathType path_type, FileSpec &file_spec)
// TODO: where would user LLDB plug-ins be located on linux? Other systems?
return false;
}
default:
assert (!"Unhandled PathType");
break;
}
return false;

View File

@ -218,10 +218,6 @@ Mutex::Mutex (Mutex::Type type) :
case eMutexTypeRecursive:
err = ::pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE);
break;
default:
err = -1;
break;
}
assert(err == 0);
err = ::pthread_mutex_init (&m_mutex, &attr);

View File

@ -2589,8 +2589,6 @@ CommandInterpreter::GetScriptInterpreter (bool can_create)
case eScriptLanguageNone:
m_script_interpreter_ap.reset (new ScriptInterpreterNone (*this));
break;
default:
break;
};
return m_script_interpreter_ap.get();

View File

@ -1131,8 +1131,6 @@ ScriptInterpreterPython::ExecuteOneLineWithReturn (const char *in_string,
success = PyArg_Parse (py_return, format, (char *) ret_value);
break;
}
default:
{}
}
Py_DECREF (py_return);
if (success)

View File

@ -453,7 +453,6 @@ ABIMacOSX_i386::PrepareNormalCall (Thread &thread,
switch (scalar.GetType())
{
case Scalar::e_void:
default:
return false;
case Scalar::e_sint:
case Scalar::e_uint:

View File

@ -893,9 +893,6 @@ DynamicLoaderDarwinKernel::PrivateProcessStateChanged (Process *process, StateTy
case eStateCrashed:
case eStateSuspended:
break;
default:
break;
}
}

View File

@ -1605,9 +1605,6 @@ DynamicLoaderMacOSXDYLD::PrivateProcessStateChanged (Process *process, StateType
case eStateCrashed:
case eStateSuspended:
break;
default:
break;
}
}

View File

@ -125,10 +125,6 @@ AuxVector::GetEntryName(EntryType type)
#define ENTRY_NAME(_type) _type: name = #_type
switch (type)
{
default:
name = "unkown";
break;
case ENTRY_NAME(AT_NULL); break;
case ENTRY_NAME(AT_IGNORE); break;
case ENTRY_NAME(AT_EXECFD); break;

View File

@ -13001,7 +13001,6 @@ EmulateInstructionARM::CurrentCond (const uint32_t opcode)
{
switch (m_opcode_mode)
{
default:
case eModeInvalid:
break;

View File

@ -89,9 +89,6 @@ public:
case eInstructionTypeAll:
return false;
default:
break;
}
return false;
}

View File

@ -102,10 +102,6 @@ ProcessMessage::PrintCrashReason(CrashReason reason)
switch (reason)
{
default:
assert(false && "invalid CrashReason");
break;
case eInvalidCrashReason:
str = "eInvalidCrashReason";
break;
@ -204,10 +200,6 @@ ProcessMessage::PrintKind(Kind kind)
switch (kind)
{
default:
assert(false && "invalid Kind");
break;
case eInvalidMessage:
str = "eInvalidMessage";
break;

View File

@ -322,10 +322,6 @@ ProcessPOSIX::SendMessage(const ProcessMessage &message)
switch (message.GetKind())
{
default:
assert(false && "Unexpected process message!");
break;
case ProcessMessage::eInvalidMessage:
return;

View File

@ -1987,7 +1987,6 @@ GDBRemoteCommunicationClient::SendGDBStoppointTypePacket (GDBStoppointType type,
case eWatchpointWrite: if (!m_supports_z2) return UINT8_MAX; break;
case eWatchpointRead: if (!m_supports_z3) return UINT8_MAX; break;
case eWatchpointReadWrite: if (!m_supports_z4) return UINT8_MAX; break;
default: return UINT8_MAX;
}
char packet[64];
@ -2017,7 +2016,6 @@ GDBRemoteCommunicationClient::SendGDBStoppointTypePacket (GDBStoppointType type,
case eWatchpointWrite: m_supports_z2 = false; break;
case eWatchpointRead: m_supports_z3 = false; break;
case eWatchpointReadWrite: m_supports_z4 = false; break;
default: break;
}
}

View File

@ -307,7 +307,6 @@ public:
case eWatchpointWrite: return m_supports_z2;
case eWatchpointRead: return m_supports_z3;
case eWatchpointReadWrite: return m_supports_z4;
default: break;
}
return false;
}

View File

@ -594,7 +594,6 @@ UnwindAssemblyInstEmulation::WriteRegister (EmulateInstruction *instruction,
switch (context.type)
{
default:
case EmulateInstruction::eContextInvalid:
case EmulateInstruction::eContextReadOpcode:
case EmulateInstruction::eContextImmediate:

View File

@ -194,7 +194,6 @@ ConvertAccessTypeToObjCIvarAccessControl (AccessType access)
{
switch (access)
{
default: break;
case eAccessNone: return ObjCIvarDecl::None;
case eAccessPublic: return ObjCIvarDecl::Public;
case eAccessPrivate: return ObjCIvarDecl::Private;
@ -708,8 +707,6 @@ ClangASTContext::GetBuiltinTypeForEncodingAndBitSize (ASTContext *ast, Encoding
if (bit_size && !(bit_size & 0x7u))
return ast->getExtVectorType (ast->UnsignedCharTy, bit_size/8).getAsOpaquePtr();
break;
default:
break;
}
return NULL;

View File

@ -671,10 +671,6 @@ ProcessLaunchInfo::FileAction::AddPosixSpawnFileAction (posix_spawn_file_actions
file_actions, info->m_fd, info->m_path.c_str(), oflag, mode);
}
break;
default:
error.SetErrorStringWithFormat ("invalid file action: %i", info->m_action);
break;
}
return error.Success();
}
@ -3369,7 +3365,6 @@ Process::ShouldBroadcastEvent (Event *event_ptr)
// This is a transition from stop to run.
switch (m_thread_list.ShouldReportRun (event_ptr))
{
default:
case eVoteYes:
case eVoteNoOpinion:
return_value = true;

View File

@ -249,8 +249,6 @@ lldb_private::GetVoteAsCString (Vote vote)
case eVoteNo: return "no";
case eVoteNoOpinion: return "no opinion";
case eVoteYes: return "yes";
default:
break;
}
return "invalid";
}
@ -327,9 +325,6 @@ lldb_private::NameMatches (const char *name,
return regex.Execute (name);
}
break;
default:
assert (!"unhandled NameMatchType in lldb_private::NameMatches()");
break;
}
}
return false;

View File

@ -796,7 +796,6 @@ Driver::UpdateSelectedThread ()
StopReason thread_stop_reason = thread.GetStopReason();
switch (thread_stop_reason)
{
default:
case eStopReasonInvalid:
case eStopReasonNone:
break;