Skip to content

Commit

Permalink
Cleanup includes: WindowsDriver & WindowsManifest
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-sans-paille committed Mar 10, 2022
1 parent 66298e1 commit f06d487
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 2 additions & 0 deletions lld/COFF/Driver.cpp
Expand Up @@ -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"
Expand All @@ -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>
Expand Down
7 changes: 5 additions & 2 deletions llvm/include/llvm/WindowsDriver/MSVCPaths.h
Expand Up @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions llvm/lib/WindowsDriver/MSVCPaths.cpp
Expand Up @@ -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"
Expand All @@ -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
Expand Down
2 changes: 0 additions & 2 deletions llvm/lib/WindowsManifest/WindowsManifestMerger.cpp
Expand Up @@ -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
Expand Down

0 comments on commit f06d487

Please sign in to comment.