comparison gen/tollvm.cpp @ 637:29dc68c949b0

Applied the FreeBSD patch from Ralith, closes ticket #95 , slightly changed but basically the same. Thanx Ralith :)
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Thu, 02 Oct 2008 03:25:46 +0200
parents df196c8dea26
children 8d850fa25713
comparison
equal deleted inserted replaced
636:9fb1f559d9e9 637:29dc68c949b0
702 // CRITICAL_SECTION.sizeof == 68 702 // CRITICAL_SECTION.sizeof == 68
703 std::vector<const LLType*> types(17, LLType::Int32Ty); 703 std::vector<const LLType*> types(17, LLType::Int32Ty);
704 return LLStructType::get(types); 704 return LLStructType::get(types);
705 } 705 }
706 706
707 // FreeBSD
708 else if (global.params.os == OSFreeBSD) {
709 // Just a pointer
710 return LLStructType::get(DtoSize_t(), 0);
711 }
712
707 // pthread_fastlock 713 // pthread_fastlock
708 std::vector<const LLType*> types2; 714 std::vector<const LLType*> types2;
709 types2.push_back(DtoSize_t()); 715 types2.push_back(DtoSize_t());
710 types2.push_back(LLType::Int32Ty); 716 types2.push_back(LLType::Int32Ty);
711 const LLStructType* fastlock = LLStructType::get(types2); 717 const LLStructType* fastlock = LLStructType::get(types2);