[svn r250] Fixed the warning about dropping arguments to _Dmain when optimizing.

Did a few cleanups in inline asm code.
This commit is contained in:
Tomas Lindquist Olsen 2008-06-08 08:03:19 +02:00
parent 68d7827d35
commit 28382e3567
8 changed files with 45 additions and 135 deletions

View file

@ -15,15 +15,20 @@
//////////////////////////////////////////////////////////////////////////////////////////
const llvm::StructType* DtoArrayType(Type* t)
const llvm::StructType* DtoArrayType(Type* arrayTy)
{
assert(t->next);
const LLType* elemty = DtoType(t->next);
assert(arrayTy->next);
const LLType* elemty = DtoType(arrayTy->next);
if (elemty == llvm::Type::VoidTy)
elemty = llvm::Type::Int8Ty;
return llvm::StructType::get(DtoSize_t(), getPtrToType(elemty), 0);
}
const llvm::StructType* DtoArrayType(const LLType* t)
{
return llvm::StructType::get(DtoSize_t(), getPtrToType(t), 0);
}
//////////////////////////////////////////////////////////////////////////////////////////
const llvm::ArrayType* DtoStaticArrayType(Type* t)