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

View File

@@ -614,9 +614,6 @@ int main(int argc, char **argv)
if (global.errors)
fatal();
// create a proper target
Ir ir;
// Set up the TargetMachine.
ExplicitBitness::Type bitness = ExplicitBitness::None;
if ((m32bits || m64bits) && (!mArch.empty() || !mTargetTriple.empty()))
@@ -669,7 +666,7 @@ int main(int argc, char **argv)
}
// Initialization
Type::init(&ir);
Type::init();
Id::initialize();
Module::init();
Target::init();
@@ -987,7 +984,7 @@ int main(int argc, char **argv)
printf("code %s\n", m->toChars());
if (global.params.obj)
{
llvm::Module* lm = m->genLLVMModule(context, &ir);
llvm::Module* lm = m->genLLVMModule(context);
if (!singleObj)
{
m->deleteObjFile();