mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-17 12:23:14 +01:00
Remove some other code that tested for LLVM before r67588.
This commit is contained in:
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);
|
||||
|
||||
Reference in New Issue
Block a user