"Read bytecodes from PCH file", http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070205/044159.html,
and "Push bytecode decompressor out through APIs", http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070205/044106.html, passed each other in the night. The attached patch gets llvm-gcc4 building again. Ciao, Duncan.
Index: gcc.llvm.master/gcc/llvm-backend.cpp =================================================================== --- gcc.llvm.master.orig/gcc/llvm-backend.cpp 2007-02-08 18:00:28.000000000 +0100 +++ gcc.llvm.master/gcc/llvm-backend.cpp 2007-02-08 18:01:12.000000000 +0100 @@ -37,6 +37,7 @@ #include "llvm/CodeGen/SchedulerRegistry.h" #include "llvm/CodeGen/ScheduleDAG.h" #include "llvm/Support/Streams.h" +#include "llvm/Support/Compressor.h" #include "llvm/Target/SubtargetFeature.h" #include "llvm/Target/TargetData.h" #include "llvm/Target/TargetLowering.h" @@ -192,7 +193,8 @@ fclose (asm_out_file); std::string ErrMsg; - TheModule = ParseBytecodeFile(asm_file_name, &ErrMsg); + TheModule = ParseBytecodeFile(asm_file_name, + Compressor::decompressToNewBuffer, &ErrMsg); if (!TheModule) { cerr << "Error reading bytecodes from PCH file\n"; cerr << ErrMsg << "\n";
_______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits