mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
[lldb] Only include mach headers on Darwin
This commit is contained in:
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user