Don't immediately delete generated doc file

Just before writing the object file. Module::deleteObjFile() deletes the
doc file too, and generating the docs happens in a prior pass before
codegen.
deleteObjFile() is already called in mars.d, after reading the source
file, before the generate-doc pass.

Fixes dmd-testsuite's runnable/test_switches.sh.
This commit is contained in:
Martin 2017-02-06 21:10:28 +01:00
parent 84e74e3932
commit badea5a78d

View file

@ -166,7 +166,6 @@ void CodeGenerator::finishLLModule(Module *m) {
*global.params.bitcodeFiles);
}
m->deleteObjFile();
writeAndFreeLLModule(m->objfile->name->str);
}