[Lldb-commits] [lldb] r127558 - /lldb/trunk/include/lldb/Core/EmulateInstruction.h

Benjamin Kramer benny.kra at googlemail.com
Sat Mar 12 16:14:32 PST 2011


Author: d0k
Date: Sat Mar 12 18:14:32 2011
New Revision: 127558

URL: http://llvm.org/viewvc/llvm-project?rev=127558&view=rev
Log:
Turn labels into actual switch cases.

Modified:
    lldb/trunk/include/lldb/Core/EmulateInstruction.h

Modified: lldb/trunk/include/lldb/Core/EmulateInstruction.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/EmulateInstruction.h?rev=127558&r1=127557&r2=127558&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Core/EmulateInstruction.h (original)
+++ lldb/trunk/include/lldb/Core/EmulateInstruction.h Sat Mar 12 18:14:32 2011
@@ -481,12 +481,11 @@
             *success_ptr = true;
         switch (m_inst.opcode_type)
         {
-        eOpcode8:   return m_inst.opcode.inst8;
-        eOpcode16:  return m_inst.opcode.inst16;
-        eOpcode32:  return m_inst.opcode.inst32;
-        eOpcode64:  return m_inst.opcode.inst64;
-        eOpcodeBytes:
-            break;
+        case eOpcode8:     return m_inst.opcode.inst8;
+        case eOpcode16:    return m_inst.opcode.inst16;
+        case eOpcode32:    return m_inst.opcode.inst32;
+        case eOpcode64:    return m_inst.opcode.inst64;
+        case eOpcodeBytes: break;
         }
         if (success_ptr)
             *success_ptr = false;





More information about the lldb-commits mailing list