[Lldb-commits] [PATCH] D19604: Allow ObjectFilePECOFF to initialize	with ARM binaries.
    Stephane Sezer via Phabricator via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Tue Oct 24 16:41:20 PDT 2017
    
    
  
This revision was automatically updated to reflect the committed changes.
Closed by commit rL316532: Allow ObjectFilePECOFF to initialize with ARM binaries. (authored by sas).
Repository:
  rL LLVM
https://reviews.llvm.org/D19604
Files:
  lldb/trunk/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
Index: lldb/trunk/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
===================================================================
--- lldb/trunk/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
+++ lldb/trunk/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
@@ -136,6 +136,11 @@
           spec.SetTriple("i686-pc-windows");
           specs.Append(ModuleSpec(file, spec));
         }
+        else if (coff_header.machine == MachineArmNt)
+        {
+          spec.SetTriple("arm-pc-windows");
+          specs.Append(ModuleSpec(file, spec));
+        }
       }
     }
   }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19604.120148.patch
Type: text/x-patch
Size: 597 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20171024/aac927f3/attachment.bin>
    
    
More information about the lldb-commits
mailing list