mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
Make MCInstrInfo available to the MCInstPrinter. This will be used to remove getInstructionName and the static data it contains since the same tables are already in MCInstrInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153860 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -22,6 +22,7 @@
|
||||
#include "llvm/MC/MCExpr.h"
|
||||
#include "llvm/MC/MCInst.h"
|
||||
#include "llvm/MC/MCInstPrinter.h"
|
||||
#include "llvm/MC/MCInstrInfo.h"
|
||||
#include "llvm/MC/MCRegisterInfo.h"
|
||||
#include "llvm/MC/MCStreamer.h"
|
||||
#include "llvm/MC/MCSubtargetInfo.h"
|
||||
@ -165,11 +166,16 @@ EDDisassembler::EDDisassembler(CPUKey &key) :
|
||||
return;
|
||||
|
||||
InstInfos = Disassembler->getEDInfo();
|
||||
|
||||
|
||||
MII.reset(Tgt->createMCInstrInfo());
|
||||
|
||||
if (!MII)
|
||||
return;
|
||||
|
||||
InstString.reset(new std::string);
|
||||
InstStream.reset(new raw_string_ostream(*InstString));
|
||||
InstPrinter.reset(Tgt->createMCInstPrinter(LLVMSyntaxVariant, *AsmInfo,
|
||||
*MRI, *STI));
|
||||
*MII, *MRI, *STI));
|
||||
|
||||
if (!InstPrinter)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user