mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
[Hexagon] Removing static variable holding MCInstrInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229872 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c69bd70cd1
commit
5a71687970
@ -17,10 +17,9 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
std::unique_ptr <MCInstrInfo const> HexagonMCInst::MCII;
|
||||
|
||||
HexagonMCInst::HexagonMCInst() : MCInst() {}
|
||||
HexagonMCInst::HexagonMCInst(MCInstrDesc const &mcid) : MCInst() {}
|
||||
HexagonMCInst::HexagonMCInst() : MCII (createHexagonMCInstrInfo ()) {}
|
||||
HexagonMCInst::HexagonMCInst(MCInstrDesc const &mcid) :
|
||||
MCII (createHexagonMCInstrInfo ()){}
|
||||
|
||||
void HexagonMCInst::AppendImplicitOperands(MCInst &MCI) {
|
||||
MCI.addOperand(MCOperand::CreateImm(0));
|
||||
|
@ -23,9 +23,8 @@ namespace llvm {
|
||||
class MCOperand;
|
||||
|
||||
class HexagonMCInst : public MCInst {
|
||||
friend void ::LLVMInitializeHexagonTargetMC();
|
||||
// Used to access TSFlags
|
||||
static std::unique_ptr <MCInstrInfo const> MCII;
|
||||
std::unique_ptr <MCInstrInfo const> MCII;
|
||||
|
||||
public:
|
||||
explicit HexagonMCInst();
|
||||
|
@ -36,7 +36,7 @@ using namespace llvm;
|
||||
#define GET_REGINFO_MC_DESC
|
||||
#include "HexagonGenRegisterInfo.inc"
|
||||
|
||||
static MCInstrInfo *createHexagonMCInstrInfo() {
|
||||
MCInstrInfo *llvm::createHexagonMCInstrInfo() {
|
||||
MCInstrInfo *X = new MCInstrInfo();
|
||||
InitHexagonMCInstrInfo(X);
|
||||
return X;
|
||||
@ -116,7 +116,6 @@ extern "C" void LLVMInitializeHexagonTargetMC() {
|
||||
// Register the MC instruction info.
|
||||
TargetRegistry::RegisterMCInstrInfo(TheHexagonTarget,
|
||||
createHexagonMCInstrInfo);
|
||||
HexagonMCInst::MCII.reset (createHexagonMCInstrInfo());
|
||||
|
||||
// Register the MC register info.
|
||||
TargetRegistry::RegisterMCRegInfo(TheHexagonTarget,
|
||||
|
@ -30,6 +30,8 @@ class raw_ostream;
|
||||
|
||||
extern Target TheHexagonTarget;
|
||||
|
||||
MCInstrInfo *createHexagonMCInstrInfo();
|
||||
|
||||
MCCodeEmitter *createHexagonMCCodeEmitter(MCInstrInfo const &MCII,
|
||||
MCRegisterInfo const &MRI,
|
||||
MCSubtargetInfo const &MST,
|
||||
|
Loading…
Reference in New Issue
Block a user