File tree 1 file changed +4
-1
lines changed
compiler/rustc_llvm/llvm-wrapper
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 9
9
#include " llvm/Analysis/AliasAnalysis.h"
10
10
#include " llvm/Analysis/TargetLibraryInfo.h"
11
11
#include " llvm/Analysis/TargetTransformInfo.h"
12
+ #include " llvm/CodeGen/CommandFlags.h"
12
13
#include " llvm/CodeGen/TargetSubtargetInfo.h"
13
14
#include " llvm/IR/AutoUpgrade.h"
14
15
#include " llvm/IR/AssemblyAnnotationWriter.h"
50
51
51
52
using namespace llvm ;
52
53
54
+ static codegen::RegisterCodeGenFlags CGF;
55
+
53
56
typedef struct LLVMOpaquePass *LLVMPassRef;
54
57
typedef struct LLVMOpaqueTargetMachine *LLVMTargetMachineRef;
55
58
@@ -422,7 +425,7 @@ extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine(
422
425
return nullptr ;
423
426
}
424
427
425
- TargetOptions Options;
428
+ TargetOptions Options = codegen::InitTargetOptionsFromCodeGenFlags (Trip) ;
426
429
427
430
Options.FloatABIType = FloatABI::Default;
428
431
if (UseSoftFloat) {
You can’t perform that action at this time.
0 commit comments