[Lldb-commits] [PATCH] Address warnings in EmulateInstructionARM64

Ed Maste emaste at freebsd.org
Mon Apr 28 11:58:27 PDT 2014


Leave LSL_C in, hidden under #if 0, per Greg's request.
This file is using llvm::SignExtend64 already, so no need to keep our own copy of that.

http://reviews.llvm.org/D3528

Files:
  source/Plugins/Instruction/ARM64/EmulateInstructionARM64.cpp
  source/Plugins/Instruction/ARM64/EmulateInstructionARM64.h

Index: source/Plugins/Instruction/ARM64/EmulateInstructionARM64.cpp
===================================================================
--- source/Plugins/Instruction/ARM64/EmulateInstructionARM64.cpp
+++ source/Plugins/Instruction/ARM64/EmulateInstructionARM64.cpp
@@ -58,14 +58,7 @@
     return ~x;
 }
 
-
-static inline int64_t
-SignExtend64(uint64_t x, uint32_t msbit) 
-{
-    return int64_t(x << (64 - msbit)) >> (64 - msbit);
-}
-
-
+#if 0
 // LSL_C() 
 // =======
 static inline uint64_t
@@ -76,6 +69,7 @@
     carry_out = ((1ull << (64-1)) >> (shift - 1)) != 0;
     return result;
 }
+#endif
 
 // LSL()
 // =====
Index: source/Plugins/Instruction/ARM64/EmulateInstructionARM64.h
===================================================================
--- source/Plugins/Instruction/ARM64/EmulateInstructionARM64.h
+++ source/Plugins/Instruction/ARM64/EmulateInstructionARM64.h
@@ -46,9 +46,6 @@
             case lldb_private::eInstructionTypePCModifying:
             case lldb_private::eInstructionTypeAll:
                 return false;
-                
-            default:
-                break;
         }
         return false;
     }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3528.8893.patch
Type: text/x-patch
Size: 1152 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20140428/f7740369/attachment.bin>


More information about the lldb-commits mailing list