mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 19:36:06 +03:00
Remove some other code that tested for LLVM before r67588.
This commit is contained in:
parent
ec476cc5f1
commit
35d62be334
3 changed files with 0 additions and 37 deletions
11
gen/main.cpp
11
gen/main.cpp
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue