mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-12 05:47:11 +03:00
Push the context through StructType::get.
Requires LLVM >= 78258. Also remove old #if's.
This commit is contained in:
parent
de0d74dc68
commit
977fa551ee
22 changed files with 57 additions and 70 deletions
|
@ -483,11 +483,7 @@ LDC_TARGETS
|
|||
FeaturesStr = Features.getString();
|
||||
}
|
||||
|
||||
#if LLVM_REV < 77946
|
||||
std::auto_ptr<llvm::TargetMachine> target(theTarget->createTargetMachine(mod, FeaturesStr));
|
||||
#else
|
||||
std::auto_ptr<llvm::TargetMachine> target(theTarget->createTargetMachine(mod.getTargetTriple(), FeaturesStr));
|
||||
#endif
|
||||
assert(target.get() && "Could not allocate target machine!");
|
||||
gTargetMachine = target.get();
|
||||
gTargetData = gTargetMachine->getTargetData();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue