[Lldb-commits] [lldb] r191960 - Remove EOL whitespace and redundant break statement

Ed Maste emaste at freebsd.org
Fri Oct 4 08:29:20 PDT 2013


Author: emaste
Date: Fri Oct  4 10:29:20 2013
New Revision: 191960

URL: http://llvm.org/viewvc/llvm-project?rev=191960&view=rev
Log:
Remove EOL whitespace and redundant break statement

Modified:
    lldb/trunk/include/lldb/Core/Opcode.h
    lldb/trunk/source/Core/Opcode.cpp

Modified: lldb/trunk/include/lldb/Core/Opcode.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/Opcode.h?rev=191960&r1=191959&r2=191960&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Core/Opcode.h (original)
+++ lldb/trunk/include/lldb/Core/Opcode.h Fri Oct  4 10:29:20 2013
@@ -38,7 +38,7 @@ namespace lldb_private {
             eType64,
             eTypeBytes
         };
-        
+
         Opcode () : m_type (eTypeInvalid)
         {
         }
@@ -78,7 +78,7 @@ namespace lldb_private {
         {
             return m_type;
         }
-    
+
         uint8_t
         GetOpcode8 (uint8_t invalid_opcode = UINT8_MAX) const
         {
@@ -91,7 +91,6 @@ namespace lldb_private {
             case Opcode::eType32:       break;
             case Opcode::eType64:       break;
             case Opcode::eTypeBytes:    break;
-                break;
             }
             return invalid_opcode;
         }
@@ -157,7 +156,7 @@ namespace lldb_private {
             m_type = eType16;
             m_data.inst16 = inst;
         }
-        
+
         void
         SetOpcode16_2 (uint32_t inst)
         {
@@ -206,7 +205,7 @@ namespace lldb_private {
                 return m_data.inst.bytes;
             return NULL;
         }
-        
+
         uint32_t
         GetByteSize () const
         {
@@ -222,7 +221,7 @@ namespace lldb_private {
             }
             return 0;
         }
-        
+
         // Get the opcode exactly as it would be laid out in memory.
         uint32_t
         GetData (DataExtractor &data) const;
@@ -246,7 +245,7 @@ namespace lldb_private {
             }
             return NULL;
         }
-        
+
         lldb::ByteOrder
         GetDataByteOrder () const;
 
@@ -257,7 +256,7 @@ namespace lldb_private {
             uint16_t inst16;
             uint32_t inst32;
             uint64_t inst64;
-            struct 
+            struct
             {
                 uint8_t bytes[16]; // This must be big enough to handle any opcode for any supported target.
                 uint8_t length;

Modified: lldb/trunk/source/Core/Opcode.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Opcode.cpp?rev=191960&r1=191959&r2=191960&view=diff
==============================================================================
--- lldb/trunk/source/Core/Opcode.cpp (original)
+++ lldb/trunk/source/Core/Opcode.cpp Fri Oct  4 10:29:20 2013
@@ -31,18 +31,18 @@ Opcode::Dump (Stream *s, uint32_t min_by
     int bytes_written = 0;
     switch (m_type)
     {
-    case Opcode::eTypeInvalid:  
-        bytes_written = s->PutCString ("<invalid>"); 
+    case Opcode::eTypeInvalid:
+        bytes_written = s->PutCString ("<invalid>");
         break;
-    case Opcode::eType8:        
-        bytes_written = s->Printf ("0x%2.2x", m_data.inst8); 
+    case Opcode::eType8:
+        bytes_written = s->Printf ("0x%2.2x", m_data.inst8);
         break;
     case Opcode::eType16:
-        bytes_written = s->Printf ("0x%4.4x", m_data.inst16); 
+        bytes_written = s->Printf ("0x%4.4x", m_data.inst16);
         break;
     case Opcode::eType16_2:
     case Opcode::eType32:
-        bytes_written = s->Printf ("0x%8.8x", m_data.inst32); 
+        bytes_written = s->Printf ("0x%8.8x", m_data.inst32);
         break;
 
     case Opcode::eType64:
@@ -55,12 +55,12 @@ Opcode::Dump (Stream *s, uint32_t min_by
             {
                 if (i > 0)
                     bytes_written += s->PutChar (' ');
-                bytes_written += s->Printf ("%2.2x", m_data.inst.bytes[i]); 
+                bytes_written += s->Printf ("%2.2x", m_data.inst.bytes[i]);
             }
         }
         break;
     }
-    
+
     // Add spaces to make sure bytes dispay comes out even in case opcodes
     // aren't all the same size
     if (bytes_written < min_byte_width)
@@ -89,7 +89,7 @@ uint32_t
 Opcode::GetData (DataExtractor &data) const
 {
     uint32_t byte_size = GetByteSize ();
-    
+
     DataBufferSP buffer_sp;
     if (byte_size > 0)
     {
@@ -97,7 +97,7 @@ Opcode::GetData (DataExtractor &data) co
         {
             case Opcode::eTypeInvalid:
                 break;
-                
+
             case Opcode::eType8:    buffer_sp.reset (new DataBufferHeap (&m_data.inst8,  byte_size)); break;
             case Opcode::eType16:   buffer_sp.reset (new DataBufferHeap (&m_data.inst16, byte_size)); break;
             case Opcode::eType16_2:
@@ -119,7 +119,7 @@ Opcode::GetData (DataExtractor &data) co
                 break;
         }
     }
-    
+
     if (buffer_sp)
     {
         data.SetByteOrder(GetDataByteOrder());





More information about the lldb-commits mailing list