File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
llvm/lib/Target/SystemZ/MCTargetDesc Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1515#include " llvm/MC/MCContext.h"
1616#include " llvm/MC/MCDwarf.h"
1717#include " llvm/MC/MCInst.h"
18+ #include " llvm/MC/MCInstrAnalysis.h"
1819#include " llvm/MC/MCInstrInfo.h"
1920#include " llvm/MC/MCRegisterInfo.h"
2021#include " llvm/MC/MCStreamer.h"
@@ -243,6 +244,10 @@ createNullTargetStreamer(MCStreamer &S) {
243244 return new SystemZTargetStreamer (S);
244245}
245246
247+ static MCInstrAnalysis *createSystemZMCInstrAnalysis (const MCInstrInfo *Info) {
248+ return new MCInstrAnalysis (Info);
249+ }
250+
246251extern " C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSystemZTargetMC () {
247252 // Register the MCAsmInfo.
248253 TargetRegistry::RegisterMCAsmInfo (getTheSystemZTarget (),
@@ -283,4 +288,8 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSystemZTargetMC() {
283288 // Register the null streamer
284289 TargetRegistry::RegisterNullTargetStreamer (getTheSystemZTarget (),
285290 createNullTargetStreamer);
291+
292+ // Register the MCInstrAnalysis.
293+ TargetRegistry::RegisterMCInstrAnalysis (getTheSystemZTarget (),
294+ createSystemZMCInstrAnalysis);
286295}
You can’t perform that action at this time.
0 commit comments