Mercurial > projects > ldc
comparison gen/tollvm.cpp @ 1375:63f4afd01036
Cleaned up TypeInfo_Struct.
Fixed problem with DtoConstSize_t taking a size_t argument, this is not enough for cross compiling from 32bit host to a 64bit target. It now takes uint64_t. There's probably a lot of similar case around to code ...
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Sun, 17 May 2009 04:41:10 +0200 |
parents | 46f6365a50d7 |
children | a6dfd3cb5b99 |
comparison
equal
deleted
inserted
replaced
1374:e630ff79e10d | 1375:63f4afd01036 |
---|---|
487 llvm::CallInst::Create(fn, llargs.begin(), llargs.end(), "", gIR->scopebb()); | 487 llvm::CallInst::Create(fn, llargs.begin(), llargs.end(), "", gIR->scopebb()); |
488 } | 488 } |
489 | 489 |
490 ////////////////////////////////////////////////////////////////////////////////////////// | 490 ////////////////////////////////////////////////////////////////////////////////////////// |
491 | 491 |
492 llvm::ConstantInt* DtoConstSize_t(size_t i) | 492 llvm::ConstantInt* DtoConstSize_t(uint64_t i) |
493 { | 493 { |
494 return llvm::ConstantInt::get(DtoSize_t(), i, false); | 494 return llvm::ConstantInt::get(DtoSize_t(), i, false); |
495 } | 495 } |
496 llvm::ConstantInt* DtoConstUint(unsigned i) | 496 llvm::ConstantInt* DtoConstUint(unsigned i) |
497 { | 497 { |