mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-27 01:53:13 +01:00
Renamed IrType::get/IrType::getD, treat classes as the special case they are.
This commit is contained in:
@@ -279,7 +279,7 @@ llvm::Type* IrTypeClass::buildType()
|
||||
|
||||
IF_LOG Logger::cout() << "class type: " << *type << std::endl;
|
||||
|
||||
return get();
|
||||
return getLLType();
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
@@ -349,13 +349,20 @@ std::vector<llvm::Type*> IrTypeClass::buildVtblType(Type* first, Array* vtbl_arr
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
llvm::Type * IrTypeClass::get()
|
||||
llvm::Type * IrTypeClass::getLLType()
|
||||
{
|
||||
return llvm::PointerType::get(type, 0);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
llvm::Type * IrTypeClass::getMemoryLLType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
size_t IrTypeClass::getInterfaceIndex(ClassDeclaration * inter)
|
||||
{
|
||||
ClassIndexMap::iterator it = interfaceMap.find(inter);
|
||||
|
||||
Reference in New Issue
Block a user