Mercurial > projects > ldc
diff gen/main.cpp @ 1347:3647bef175d7
Remove some other code that tested for LLVM before r67588.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Tue, 12 May 2009 16:02:51 +0200 |
parents | b3674ad4026d |
children | 229e02867307 |
line wrap: on
line diff
--- a/gen/main.cpp Tue May 12 15:50:48 2009 +0200 +++ b/gen/main.cpp Tue May 12 16:02:51 2009 +0200 @@ -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 @@ 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);