comparison gen/tollvm.cpp @ 1501:8b9f236dd051

Build fix for LLVM >= r73431
author Benjamin Kramer <benny.kra@gmail.com>
date Tue, 16 Jun 2009 15:37:40 +0200
parents d9c5f5a43403
children 855f188aab7a
comparison
equal deleted inserted replaced
1500:c3c46399bcf1 1501:8b9f236dd051
397 return 0; 397 return 0;
398 } 398 }
399 399
400 ////////////////////////////////////////////////////////////////////////////////////////// 400 //////////////////////////////////////////////////////////////////////////////////////////
401 401
402 const LLType* DtoSize_t() 402 const LLIntegerType* DtoSize_t()
403 { 403 {
404 // the type of size_t does not change once set 404 // the type of size_t does not change once set
405 static const LLType* t = NULL; 405 static const LLIntegerType* t = NULL;
406 if (t == NULL) 406 if (t == NULL)
407 t = (global.params.is64bit) ? LLType::Int64Ty : LLType::Int32Ty; 407 t = (global.params.is64bit) ? LLType::Int64Ty : LLType::Int32Ty;
408 return t; 408 return t;
409 } 409 }
410 410
561 llvm::ConstantInt* DtoConstUbyte(unsigned char i) 561 llvm::ConstantInt* DtoConstUbyte(unsigned char i)
562 { 562 {
563 return llvm::ConstantInt::get(LLType::Int8Ty, i, false); 563 return llvm::ConstantInt::get(LLType::Int8Ty, i, false);
564 } 564 }
565 565
566 llvm::ConstantFP* DtoConstFP(Type* t, long double value) 566 LLConstant* DtoConstFP(Type* t, long double value)
567 { 567 {
568 const LLType* llty = DtoType(t); 568 const LLType* llty = DtoType(t);
569 assert(llty->isFloatingPoint()); 569 assert(llty->isFloatingPoint());
570 570
571 if(llty == LLType::FloatTy || llty == LLType::DoubleTy) 571 if(llty == LLType::FloatTy || llty == LLType::DoubleTy)