From 88a8fa366e1a76507ae2212f9c3f110df865c3a5 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 5 Dec 2012 04:56:27 +0000 Subject: [PATCH] Driver.cpp: Restore clang/Config/config.h to be included at last not to prevent llvm-config.h. Or "llvm/Support/system_error.h" could not be compiled on mingw. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169354 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Driver.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index cea24fdb15..a6410d8bb8 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -11,7 +11,6 @@ #include "InputInfo.h" #include "ToolChains.h" #include "clang/Basic/Version.h" -#include "clang/Config/config.h" #include "clang/Driver/Action.h" #include "clang/Driver/Arg.h" #include "clang/Driver/ArgList.h" @@ -34,6 +33,10 @@ #include "llvm/Support/raw_ostream.h" #include +// FIXME: It would prevent to include llvm-config.h +// if it were included before system_error.h. +#include "clang/Config/config.h" + using namespace clang::driver; using namespace clang; -- 2.50.1