Jim, This patch is needed to get llvm-gcc to set the DataLayout string properly and not use setEndianness or setPointerSize any more. These are changes made by PR761. Please apply at your earliest convenience.
This was made against repository revision 256. Thanks, Reid.
Index: gcc/llvm-backend.cpp =================================================================== --- gcc/llvm-backend.cpp (revision 256) +++ gcc/llvm-backend.cpp (working copy) @@ -134,10 +134,11 @@ #endif TheModule->setTargetTriple(TargetTriple); - TheModule->setEndianness(BITS_BIG_ENDIAN ? Module::BigEndian - : Module::LittleEndian); - TheModule->setPointerSize(POINTER_SIZE == 32 ? Module::Pointer32 - : Module::Pointer64); + std::string DataLayout; + DataLayout.append(BITS_BIG_ENDIAN ? "E" : "e"); + DataLayout.append(POINTER_SIZE == 32 ? "-p:32:32" : "-p:64:64"); + TheModule->setDataLayout(DataLayout); + TheTypeConverter = new TypeConverter(); // Create the TargetMachine we will be generating code with.
_______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits