mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 09:00:33 +03:00
[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:
parent
68d7827d35
commit
28382e3567
8 changed files with 45 additions and 135 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue