diff options
| author | Liu Dingming <liudingming@bytedance.com> | 2023-09-07 17:34:41 +0800 |
|---|---|---|
| committer | Liu Dingming <liudingming@bytedance.com> | 2023-09-07 17:37:12 +0800 |
| commit | bb6dcf5f740f6147eaf8774509ca27adc47c009b (patch) | |
| tree | 4bd6cd4c70ad8b37c5c5159cd703aea603e683de /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 7f0fa485a6ea1cc2f324d8412d749ed4ecfbce2a (diff) | |
| download | rust-bb6dcf5f740f6147eaf8774509ca27adc47c009b.tar.gz rust-bb6dcf5f740f6147eaf8774509ca27adc47c009b.zip | |
Add `RegisterCodeGenFlags` to get full codegen flags list
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp index 4ac739326d2..4b30a4fefd9 100644 --- a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp @@ -9,6 +9,7 @@ #include "llvm/Analysis/AliasAnalysis.h" #include "llvm/Analysis/TargetLibraryInfo.h" #include "llvm/Analysis/TargetTransformInfo.h" +#include "llvm/CodeGen/CommandFlags.h" #include "llvm/CodeGen/TargetSubtargetInfo.h" #include "llvm/IR/AutoUpgrade.h" #include "llvm/IR/AssemblyAnnotationWriter.h" @@ -50,6 +51,8 @@ using namespace llvm; +static codegen::RegisterCodeGenFlags CGF; + typedef struct LLVMOpaquePass *LLVMPassRef; typedef struct LLVMOpaqueTargetMachine *LLVMTargetMachineRef; |
