Skip to content

Commit bb6dcf5

Browse files
committed
Add RegisterCodeGenFlags to get full codegen flags list
1 parent 7f0fa48 commit bb6dcf5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
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"
@@ -50,6 +51,8 @@
5051

5152
using namespace llvm;
5253

54+
static codegen::RegisterCodeGenFlags CGF;
55+
5356
typedef struct LLVMOpaquePass *LLVMPassRef;
5457
typedef struct LLVMOpaqueTargetMachine *LLVMTargetMachineRef;
5558

0 commit comments

Comments
 (0)