mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-05 03:43:13 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user