Remove some other code that tested for LLVM before r67588.

This commit is contained in:
Frits van Bommel 2009-05-12 16:02:51 +02:00
parent ec476cc5f1
commit 35d62be334
3 changed files with 0 additions and 37 deletions

View file

@ -37,7 +37,6 @@
#include "gen/irstate.h"
#include "gen/toobj.h"
#include "gen/passes/Passes.h"
#include "gen/llvm-version.h"
#include "gen/cl_options.h"
#include "gen/cl_helpers.h"
@ -881,16 +880,6 @@ int main(int argc, char** argv)
delete llvmModules[i];
}
#if LLVM_REV < 66404
// Workaround for llvm bug #3749
// Not needed since LLVM r66404 (it no longer checks for this)
llvm::GlobalVariable* ctors = linker.getModule()->getGlobalVariable("llvm.global_ctors");
if (ctors) {
ctors->removeDeadConstantUsers();
assert(ctors->use_empty());
}
#endif
m->deleteObjFile();
writeModule(linker.getModule(), filename);
global.params.objfiles->push(filename);