Upgrade the arm/thumb architecture used by the disassembler
authorTamas Berghammer <tberghammer@google.com>
Wed, 2 Mar 2016 12:42:43 +0000 (12:42 +0000)
committerTamas Berghammer <tberghammer@google.com>
Wed, 2 Mar 2016 12:42:43 +0000 (12:42 +0000)
Previously we were using thumbv7 and armv8.1a what ended up showing a
few undefined instruction when disassembling code. This CL update the
architectures used to armv8.2a and thumbv8.2a (newest available) so we
display all instruction in the disassambly.

llvm-svn: 262482

lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp

index d2e1a7946448298dd3154a95de2963af0efce054..5bc782c19db720ee59a8af5acf3c34590f75070f 100644 (file)
@@ -633,7 +633,7 @@ DisassemblerLLVMC::DisassemblerLLVMC (const ArchSpec &arch, const char *flavor_s
         }
         else
         {
-            thumb_arch_name = "thumbv7";
+            thumb_arch_name = "thumbv8.2a";
         }
         thumb_arch.GetTriple().setArchName(llvm::StringRef(thumb_arch_name.c_str()));
     }
@@ -643,7 +643,7 @@ DisassemblerLLVMC::DisassemblerLLVMC (const ArchSpec &arch, const char *flavor_s
     // in case the code uses instructions which are not available in the oldest arm version
     // (used when no sub architecture is specified)
     if (triple.getArch() == llvm::Triple::arm && triple.getSubArch() == llvm::Triple::NoSubArch)
-        triple.setArchName("armv8.1a");
+        triple.setArchName("armv8.2a");
 
     const char *triple_str = triple.getTriple().c_str();