From a372f40dac73b69936f6a713df0808c740bb326c Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 17 Jun 2013 17:23:47 +0000 Subject: [PATCH] Include PathV1.h only where it is used. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184090 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/clang-interpreter/main.cpp | 1 + include/clang/Driver/Compilation.h | 1 - lib/Driver/Compilation.cpp | 1 + lib/Driver/Driver.cpp | 1 + lib/Driver/ToolChains.cpp | 1 + lib/Driver/Tools.cpp | 1 + lib/Driver/WindowsToolChain.cpp | 1 + lib/Tooling/Tooling.cpp | 1 + tools/driver/driver.cpp | 1 + 9 files changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/clang-interpreter/main.cpp b/examples/clang-interpreter/main.cpp index 3d0d6409d9..ff86d2b368 100644 --- a/examples/clang-interpreter/main.cpp +++ b/examples/clang-interpreter/main.cpp @@ -24,6 +24,7 @@ #include "llvm/Support/Host.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/Path.h" +#include "llvm/Support/PathV1.h" #include "llvm/Support/TargetSelect.h" #include "llvm/Support/raw_ostream.h" using namespace clang; diff --git a/include/clang/Driver/Compilation.h b/include/clang/Driver/Compilation.h index 6c29b6297c..77a8d88706 100644 --- a/include/clang/Driver/Compilation.h +++ b/include/clang/Driver/Compilation.h @@ -14,7 +14,6 @@ #include "clang/Driver/Util.h" #include "llvm/ADT/DenseMap.h" #include "llvm/Support/Path.h" -#include "llvm/Support/PathV1.h" namespace llvm { namespace opt { diff --git a/lib/Driver/Compilation.cpp b/lib/Driver/Compilation.cpp index 50725fc678..ef40ae4afb 100644 --- a/lib/Driver/Compilation.cpp +++ b/lib/Driver/Compilation.cpp @@ -16,6 +16,7 @@ #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringSwitch.h" #include "llvm/Option/ArgList.h" +#include "llvm/Support/PathV1.h" #include "llvm/Support/Program.h" #include "llvm/Support/raw_ostream.h" #include diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index e5d3ed4cab..6eeb737ebc 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -30,6 +30,7 @@ #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/Path.h" +#include "llvm/Support/PathV1.h" #include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/Program.h" #include "llvm/Support/raw_ostream.h" diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 0853006b12..5c0ab55a04 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -27,6 +27,7 @@ #include "llvm/Support/FileSystem.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Path.h" +#include "llvm/Support/PathV1.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Support/system_error.h" diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index c7053e84fa..67ce305893 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -31,6 +31,7 @@ #include "llvm/Support/FileSystem.h" #include "llvm/Support/Format.h" #include "llvm/Support/Host.h" +#include "llvm/Support/PathV1.h" #include "llvm/Support/Process.h" #include "llvm/Support/raw_ostream.h" #include diff --git a/lib/Driver/WindowsToolChain.cpp b/lib/Driver/WindowsToolChain.cpp index 64625ed535..da914befa7 100644 --- a/lib/Driver/WindowsToolChain.cpp +++ b/lib/Driver/WindowsToolChain.cpp @@ -18,6 +18,7 @@ #include "llvm/Option/ArgList.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/Path.h" +#include "llvm/Support/PathV1.h" // Include the necessary headers to interface with the Windows registry and // environment. diff --git a/lib/Tooling/Tooling.cpp b/lib/Tooling/Tooling.cpp index e7bfba7e12..4f3edf323f 100644 --- a/lib/Tooling/Tooling.cpp +++ b/lib/Tooling/Tooling.cpp @@ -26,6 +26,7 @@ #include "llvm/Support/Debug.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/Host.h" +#include "llvm/Support/PathV1.h" #include "llvm/Support/raw_ostream.h" // For chdir, see the comment in ClangTool::run for more information. diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp index f5a2dd041d..8b02a35387 100644 --- a/tools/driver/driver.cpp +++ b/tools/driver/driver.cpp @@ -34,6 +34,7 @@ #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Path.h" +#include "llvm/Support/PathV1.h" #include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/Program.h" #include "llvm/Support/Regex.h" -- 2.40.0