[Lldb-commits] [lldb] 9691549 - [ObjectFileMachO] Fix the build for __arm64__.

Davide Italiano via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 12 11:11:16 PST 2019


Author: Davide Italiano
Date: 2019-11-12T11:10:36-08:00
New Revision: 96915495f9fcbd47bf3f893200e3f5a8e30d0d9e

URL: https://github.com/llvm/llvm-project/commit/96915495f9fcbd47bf3f893200e3f5a8e30d0d9e
DIFF: https://github.com/llvm/llvm-project/commit/96915495f9fcbd47bf3f893200e3f5a8e30d0d9e.diff

LOG: [ObjectFileMachO] Fix the build for __arm64__.

Catch up with an API change.

Added: 
    

Modified: 
    lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
index d82a1addd334..aff1d1e87bb6 100644
--- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
+++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
@@ -2538,8 +2538,7 @@ size_t ObjectFileMachO::ParseSymtab() {
 
     // Next we need to determine the correct path for the dyld shared cache.
 
-    ArchSpec header_arch;
-    GetArchitecture(header_arch);
+    ArchSpec header_arch = GetArchitecture();
     char dsc_path[PATH_MAX];
     char dsc_path_development[PATH_MAX];
 


        


More information about the lldb-commits mailing list