[Lldb-commits] [lldb] c2cd7cc - [lldb] Only include mach headers on Darwin
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 25 09:58:54 PST 2022
Author: Jonas Devlieghere
Date: 2022-01-25T09:58:47-08:00
New Revision: c2cd7cc63c5084cea943a7cfa7e1d7e5c62a34b2
URL: https://github.com/llvm/llvm-project/commit/c2cd7cc63c5084cea943a7cfa7e1d7e5c62a34b2
DIFF: https://github.com/llvm/llvm-project/commit/c2cd7cc63c5084cea943a7cfa7e1d7e5c62a34b2.diff
LOG: [lldb] Only include mach headers on Darwin
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 2e712cded530..36ef7b520897 100644
--- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
+++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
@@ -9,10 +9,6 @@
#include "llvm/ADT/ScopeExit.h"
#include "llvm/ADT/StringRef.h"
-#include <mach/mach_init.h>
-#include <mach/vm_map.h>
-#include <lldb/Host/SafeMachO.h>
-
#include "Plugins/Process/Utility/RegisterContextDarwin_arm.h"
#include "Plugins/Process/Utility/RegisterContextDarwin_arm64.h"
#include "Plugins/Process/Utility/RegisterContextDarwin_i386.h"
@@ -60,6 +56,9 @@
#include <TargetConditionals.h>
// GetLLDBSharedCacheUUID() needs to call dlsym()
#include <dlfcn.h>
+#include <mach/mach_init.h>
+#include <mach/vm_map.h>
+#include <lldb/Host/SafeMachO.h>
#endif
#ifndef __APPLE__
More information about the lldb-commits
mailing list