Cleanup includes: WindowsDriver & WindowsManifest

Discourse thread: https://discourse.llvm.org/t/include-what-you-use-include-cleanup
Differential Revision: https://reviews.llvm.org/D121330
This commit is contained in:
serge-sans-paille 2022-03-09 22:27:35 +01:00
parent 66298e1c54
commit f06d487dd6
4 changed files with 11 additions and 8 deletions

View File

@ -22,6 +22,7 @@
#include "lld/Common/Filesystem.h"
#include "lld/Common/Timer.h"
#include "lld/Common/Version.h"
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Triple.h"
@ -45,6 +46,7 @@
#include "llvm/Support/Process.h"
#include "llvm/Support/TarWriter.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Support/VirtualFileSystem.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/ToolDrivers/llvm-lib/LibDriver.h"
#include <algorithm>

View File

@ -10,14 +10,17 @@
#define LLVM_SUPPORT_MSVCPATHS_H
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Support/VirtualFileSystem.h"
#include <string>
namespace llvm {
namespace vfs {
class FileSystem;
}
enum class SubDirectoryType {
Bin,
Include,

View File

@ -10,13 +10,9 @@
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Triple.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Option/Arg.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Support/ConvertUTF.h"
#include "llvm/Support/Host.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/Process.h"
@ -25,6 +21,10 @@
#include "llvm/Support/VirtualFileSystem.h"
#include <string>
#ifdef _WIN32
#include "llvm/Support/ConvertUTF.h"
#endif
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#define NOGDI

View File

@ -14,8 +14,6 @@
#include "llvm/Config/config.h"
#include "llvm/Support/MemoryBuffer.h"
#include <map>
#if LLVM_ENABLE_LIBXML2
#include <libxml/xmlreader.h>
#endif