[llvm-commits] [llvm-gcc-4.2] r79340 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Anton Korobeynikov
asl at math.spbu.ru
Tue Aug 18 08:40:32 PDT 2009
Author: asl
Date: Tue Aug 18 10:40:32 2009
New Revision: 79340
URL: http://llvm.org/viewvc/llvm-project?rev=79340&view=rev
Log:
gcc includes are not order-independent. We really should #include config.h + tm.h
before any other headers.
This unbreaks cross-mingw build
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=79340&r1=79339&r2=79340&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Tue Aug 18 10:40:32 2009
@@ -59,6 +59,7 @@
#include "config.h"
#include "system.h"
#include "coretypes.h"
+#include "tm.h"
#include "except.h"
#include "flags.h"
#include "tree.h"
@@ -67,7 +68,6 @@
#include "target.h"
#include "toplev.h"
#include "timevar.h"
-#include "tm.h"
#include "function.h"
#include "tree-inline.h"
#include "langhooks.h"
More information about the llvm-commits
mailing list