[Lldb-commits] [lldb] 9a62b72 - [debugserver] Fix -Wunused-function warnings on arm64

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 2 10:20:19 PST 2021


Author: Jonas Devlieghere
Date: 2021-02-02T10:20:11-08:00
New Revision: 9a62b7242aead46dd5962bc516c6527ae5e80bc0

URL: https://github.com/llvm/llvm-project/commit/9a62b7242aead46dd5962bc516c6527ae5e80bc0
DIFF: https://github.com/llvm/llvm-project/commit/9a62b7242aead46dd5962bc516c6527ae5e80bc0.diff

LOG: [debugserver] Fix -Wunused-function warnings on arm64

Added: 
    

Modified: 
    lldb/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp b/lldb/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp
index 90cc25650e38..0bac2273419d 100644
--- a/lldb/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp
@@ -105,6 +105,7 @@ static uint32_t LoHi[16] = {0};
 #define MNEMONIC_STRING_SIZE 32
 #define OPERAND_STRING_SIZE 128
 
+#if !defined(__arm64__) && !defined(__aarch64__)
 // Returns true if the first 16 bit opcode of a thumb instruction indicates
 // the instruction will be a 32 bit thumb opcode
 static bool IsThumb32Opcode(uint16_t opcode) {
@@ -112,6 +113,7 @@ static bool IsThumb32Opcode(uint16_t opcode) {
     return true;
   return false;
 }
+#endif
 
 void DNBArchMachARM::Initialize() {
   DNBArchPluginInfo arch_plugin_info = {
@@ -315,6 +317,7 @@ kern_return_t DNBArchMachARM::GetEXCState(bool force) {
   return kret;
 }
 
+#if 0
 static void DumpDBGState(const DNBArchMachARM::DBG &dbg) {
   uint32_t i = 0;
   for (i = 0; i < 16; i++) {
@@ -324,6 +327,7 @@ static void DumpDBGState(const DNBArchMachARM::DBG &dbg) {
                      dbg.__wcr[i]);
   }
 }
+#endif
 
 kern_return_t DNBArchMachARM::GetDBGState(bool force) {
   int set = e_regSetDBG;


        


More information about the lldb-commits mailing list