]> granicus.if.org Git - clang/commitdiff
Driver.cpp: Restore clang/Config/config.h to be included at last not to prevent llvm...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 5 Dec 2012 04:56:27 +0000 (04:56 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 5 Dec 2012 04:56:27 +0000 (04:56 +0000)
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

index cea24fdb15f7291485a2eef127fafce8ac33984b..a6410d8bb8f6c602b9307e10a002f390405047bd 100644 (file)
@@ -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"
 #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;