[cfe-commits] r169354 - /cfe/trunk/lib/Driver/Driver.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Tue Dec 4 20:56:28 PST 2012
Author: chapuni
Date: Tue Dec 4 22:56:27 2012
New Revision: 169354
URL: http://llvm.org/viewvc/llvm-project?rev=169354&view=rev
Log:
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.
Modified:
cfe/trunk/lib/Driver/Driver.cpp
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=169354&r1=169353&r2=169354&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Tue Dec 4 22:56:27 2012
@@ -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;
More information about the cfe-commits
mailing list