# HG changeset patch # User Frits van Bommel # Date 1240584462 -7200 # Node ID 3d6a908a34e94a187cf0fb0115c5990c7887c0c2 # Parent dda95755f63dc26203b1e9b908cf601f54495eec Add `#include "gen/llvm-version.h"` to files that use the macro it defines... diff -r dda95755f63d -r 3d6a908a34e9 gen/abi-x86-64.cpp --- a/gen/abi-x86-64.cpp Thu Apr 23 20:44:55 2009 +0200 +++ b/gen/abi-x86-64.cpp Fri Apr 24 16:47:42 2009 +0200 @@ -43,6 +43,7 @@ #include "gen/llvmhelpers.h" #include "gen/abi.h" #include "gen/abi-x86-64.h" +//#include "gen/llvm-version.h" // only use is commented out. #include "ir/irfunction.h" #include @@ -401,6 +402,8 @@ // 'fastcc' allows returns in up to two registers of each kind: DRegCount state(2, 2, 2); #if 1 //LLVM_REV < 67588 + // (If uncommenting the LLVM_REV line above, also uncomment llvm-version #include + // LLVM before trunk r67588 doesn't allow a second int to be an i1 or // i8. (See ) // Rather than complicating shouldPassStructInRegs(), just disallow diff -r dda95755f63d -r 3d6a908a34e9 gen/main.cpp --- a/gen/main.cpp Thu Apr 23 20:44:55 2009 +0200 +++ b/gen/main.cpp Fri Apr 24 16:47:42 2009 +0200 @@ -36,6 +36,7 @@ #include "gen/linker.h" #include "gen/irstate.h" #include "gen/toobj.h" +#include "gen/llvm-version.h" #include "gen/cl_options.h" #include "gen/cl_helpers.h"