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 15
15
#include " llvm/MC/MCContext.h"
16
16
#include " llvm/MC/MCDwarf.h"
17
17
#include " llvm/MC/MCInst.h"
18
+ #include " llvm/MC/MCInstrAnalysis.h"
18
19
#include " llvm/MC/MCInstrInfo.h"
19
20
#include " llvm/MC/MCRegisterInfo.h"
20
21
#include " llvm/MC/MCStreamer.h"
@@ -243,6 +244,10 @@ createNullTargetStreamer(MCStreamer &S) {
243
244
return new SystemZTargetStreamer (S);
244
245
}
245
246
247
+ static MCInstrAnalysis *createSystemZMCInstrAnalysis (const MCInstrInfo *Info) {
248
+ return new MCInstrAnalysis (Info);
249
+ }
250
+
246
251
extern " C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSystemZTargetMC () {
247
252
// Register the MCAsmInfo.
248
253
TargetRegistry::RegisterMCAsmInfo (getTheSystemZTarget (),
@@ -283,4 +288,8 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSystemZTargetMC() {
283
288
// Register the null streamer
284
289
TargetRegistry::RegisterNullTargetStreamer (getTheSystemZTarget (),
285
290
createNullTargetStreamer);
291
+
292
+ // Register the MCInstrAnalysis.
293
+ TargetRegistry::RegisterMCInstrAnalysis (getTheSystemZTarget (),
294
+ createSystemZMCInstrAnalysis);
286
295
}
You can’t perform that action at this time.
0 commit comments