mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-19 21:55:21 +02:00
lookupTarget no longer takes a Module.
And we need to get TargetData from the module if the Target doesn't have it.
This commit is contained in:
@@ -486,7 +486,7 @@ LDC_TARGETS
|
||||
#if LLVM_REV < 77946
|
||||
std::auto_ptr<llvm::TargetMachine> target(theTarget->createTargetMachine(mod, FeaturesStr));
|
||||
#else
|
||||
std::auto_ptr<llvm::TargetMachine> target(theTarget->createTargetMachine(mod, mod.getTargetTriple(), FeaturesStr));
|
||||
std::auto_ptr<llvm::TargetMachine> target(theTarget->createTargetMachine(mod.getTargetTriple(), FeaturesStr));
|
||||
#endif
|
||||
assert(target.get() && "Could not allocate target machine!");
|
||||
gTargetMachine = target.get();
|
||||
|
||||
Reference in New Issue
Block a user