aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-12-05 04:56:27 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-12-05 04:56:27 +0000
commit88a8fa366e1a76507ae2212f9c3f110df865c3a5 (patch)
tree029f0118298745bc58c707708e350073b2648bb9
parent678839297204002df215e0be12bcd10b20a9a4a4 (diff)
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
-rw-r--r--lib/Driver/Driver.cpp5
1 files changed, 4 insertions, 1 deletions
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 <map>
+// 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;