File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
compiler/rustc_llvm/llvm-wrapper Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 99#include " llvm/Analysis/AliasAnalysis.h"
1010#include " llvm/Analysis/TargetLibraryInfo.h"
1111#include " llvm/Analysis/TargetTransformInfo.h"
12+ #include " llvm/CodeGen/CommandFlags.h"
1213#include " llvm/CodeGen/TargetSubtargetInfo.h"
1314#include " llvm/IR/AutoUpgrade.h"
1415#include " llvm/IR/AssemblyAnnotationWriter.h"
5051
5152using namespace llvm ;
5253
54+ static codegen::RegisterCodeGenFlags CGF;
55+
5356typedef struct LLVMOpaquePass *LLVMPassRef;
5457typedef struct LLVMOpaqueTargetMachine *LLVMTargetMachineRef;
5558
@@ -422,7 +425,7 @@ extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine(
422425 return nullptr ;
423426 }
424427
425- TargetOptions Options;
428+ TargetOptions Options = codegen::InitTargetOptionsFromCodeGenFlags (Trip) ;
426429
427430 Options.FloatABIType = FloatABI::Default;
428431 if (UseSoftFloat) {
You can’t perform that action at this time.
0 commit comments