summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2014-10-15 17:27:11 +0000
committerZachary Turner <zturner@google.com>2014-10-15 17:27:11 +0000
commitcb37ddda0d0c4bfc53eca507e9c0f8cf23d49467 (patch)
tree5589db5507a113eabfea0d981b9e2e2728071d65
parent8178dd362f58aadcff2cea18dede72b56d815f6e (diff)
downloadbcm5719-llvm-cb37ddda0d0c4bfc53eca507e9c0f8cf23d49467.tar.gz
bcm5719-llvm-cb37ddda0d0c4bfc53eca507e9c0f8cf23d49467.zip
Remove some unnecessary headers from Host.cpp
After the recent migration of code out of Host.cpp, many unnecessary headers were still being included. This prunes the include list down to only what is still necessary. llvm-svn: 219814
-rw-r--r--lldb/source/Host/common/Host.cpp29
1 files changed, 1 insertions, 28 deletions
diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp
index ee0cb197105..87676613809 100644
--- a/lldb/source/Host/common/Host.cpp
+++ b/lldb/source/Host/common/Host.cpp
@@ -14,11 +14,7 @@
#include <limits.h>
#include <stdlib.h>
#include <sys/types.h>
-#ifdef _WIN32
-#include "lldb/Host/windows/windows.h"
-#include <winsock2.h>
-#include <ws2tcpip.h>
-#else
+#ifndef _WIN32
#include <unistd.h>
#include <dlfcn.h>
#include <grp.h>
@@ -27,11 +23,6 @@
#include <sys/stat.h>
#endif
-#if !defined (__GNU__) && !defined (_WIN32) && !defined (__ANDROID__)
-// Does not exist under GNU/HURD, or Windows, or Android
-#include <sys/sysctl.h>
-#endif
-
#if defined (__APPLE__)
#include <mach/mach_port.h>
#include <mach/mach_init.h>
@@ -50,45 +41,27 @@
#include <pthread_np.h>
#endif
-#if defined(__linux__)
-#include "Plugins/Process/Linux/ProcFileReader.h"
-#endif
-
// C++ includes
#include <limits>
#include "lldb/Host/Host.h"
#include "lldb/Host/HostInfo.h"
#include "lldb/Core/ArchSpec.h"
-#include "lldb/Core/ConstString.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Core/Error.h"
#include "lldb/Core/Log.h"
#include "lldb/Core/Module.h"
-#include "lldb/Core/StreamString.h"
-#include "lldb/Core/ThreadSafeSTLMap.h"
-#include "lldb/Host/Config.h"
-#include "lldb/Host/Endian.h"
#include "lldb/Host/FileSpec.h"
-#include "lldb/Host/FileSystem.h"
#include "lldb/Host/HostProcess.h"
#include "lldb/Host/MonitoringProcessLauncher.h"
-#include "lldb/Host/Mutex.h"
#include "lldb/Host/ProcessLauncher.h"
#include "lldb/Host/ThreadLauncher.h"
#include "lldb/lldb-private-forward.h"
#include "lldb/Target/FileAction.h"
-#include "lldb/Target/Process.h"
#include "lldb/Target/ProcessLaunchInfo.h"
#include "lldb/Target/TargetList.h"
#include "lldb/Utility/CleanUp.h"
-#include "llvm/ADT/STLExtras.h"
-#include "llvm/ADT/SmallString.h"
-#include "llvm/Support/Host.h"
-#include "llvm/Support/Path.h"
-#include "llvm/Support/raw_ostream.h"
-
#if defined(_WIN32)
#include "lldb/Host/windows/ProcessLauncherWindows.h"
#else
OpenPOWER on IntegriCloud