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
@@ -421,7 +424,7 @@ extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine(
421
424
return nullptr ;
422
425
}
423
426
424
- TargetOptions Options;
427
+ TargetOptions Options = codegen::InitTargetOptionsFromCodeGenFlags (Trip) ;
425
428
426
429
Options.FloatABIType = FloatABI::Default;
427
430
if (UseSoftFloat) {
You can’t perform that action at this time.
0 commit comments