Remove unused, empty Ir type.

The codegen parameter was changed to IRState instead of
removing it to set the stage for an eventual eradication
of the gIR global.
This commit is contained in:
David Nadlinger
2013-10-13 19:44:29 +02:00
parent c6cf35a012
commit 1242be25d0
27 changed files with 64 additions and 182 deletions
+4 -4
View File
@@ -152,7 +152,7 @@ Expression *Type::getTypeInfo(Scope *sc)
}
else // if in obj generation pass
{
t->vtinfo->codegen(sir);
t->vtinfo->codegen(gIR);
}
}
}
@@ -317,10 +317,10 @@ void DtoResolveTypeInfo(TypeInfoDeclaration* tid)
// TypeInfo instances (except ClassInfo ones) are always emitted as weak
// symbols when they are used.
tid->codegen(Type::sir);
tid->codegen(gIR);
}
void TypeInfoDeclaration::codegen(Ir*)
void TypeInfoDeclaration::codegen(IRState* p)
{
Logger::println("TypeInfoDeclaration::codegen(%s)", toPrettyChars());
LOG_SCOPE;
@@ -728,7 +728,7 @@ void TypeInfoStructDeclaration::llvmDefine()
/* ========================================================================= */
void TypeInfoClassDeclaration::codegen(Ir* p)
void TypeInfoClassDeclaration::codegen(IRState *p)
{
// For classes, the TypeInfo is in fact a ClassInfo instance and emitted
// as a __ClassZ symbol. For interfaces, the __InterfaceZ symbol is