mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 01:23:14 +01: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user