[ObjectFileMachO] Fix the build for __arm64__.
authorDavide Italiano <ditaliano@apple.com>
Tue, 12 Nov 2019 19:10:36 +0000 (11:10 -0800)
committerDavide Italiano <ditaliano@apple.com>
Tue, 12 Nov 2019 19:10:36 +0000 (11:10 -0800)
Catch up with an API change.

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

index d82a1ad..aff1d1e 100644 (file)
@@ -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];