mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-18 22:03:14 +01:00
LLVM 3.3+: Initialize TargetTransformInfo.
This commit is contained in:
@@ -49,6 +49,10 @@ static void codegenModule(llvm::TargetMachine &Target, llvm::Module& m,
|
||||
Passes.add(new TargetData(&m));
|
||||
#endif
|
||||
|
||||
#if LDC_LLVM_VER >= 303
|
||||
Target.addAnalysisPasses(Passes);
|
||||
#endif
|
||||
|
||||
llvm::formatted_raw_ostream fout(out);
|
||||
if (Target.addPassesToEmitFile(Passes, fout, fileType, codeGenOptLevel()))
|
||||
llvm_unreachable("no support for asm output");
|
||||
|
||||
Reference in New Issue
Block a user