forked from OSchip/llvm-project
Remove unused field from FixedLenDecoderEmitter. Move NumberedInstructions declaration from class to run method since its only used there and was being reinitialized anyway.
llvm-svn: 152616
This commit is contained in:
parent
84208dcf02
commit
ba6d810752
|
@ -1527,7 +1527,8 @@ void FixedLenDecoderEmitter::run(raw_ostream &o)
|
||||||
o << "namespace llvm {\n\n";
|
o << "namespace llvm {\n\n";
|
||||||
|
|
||||||
// Parameterize the decoders based on namespace and instruction width.
|
// Parameterize the decoders based on namespace and instruction width.
|
||||||
NumberedInstructions = Target.getInstructionsByEnumValue();
|
std::vector<const CodeGenInstruction*> NumberedInstructions =
|
||||||
|
Target.getInstructionsByEnumValue();
|
||||||
std::map<std::pair<std::string, unsigned>,
|
std::map<std::pair<std::string, unsigned>,
|
||||||
std::vector<unsigned> > OpcMap;
|
std::vector<unsigned> > OpcMap;
|
||||||
std::map<unsigned, std::vector<OperandInfo> > Operands;
|
std::map<unsigned, std::vector<OperandInfo> > Operands;
|
||||||
|
|
|
@ -57,8 +57,7 @@ public:
|
||||||
std::string ROK = "MCDisassembler::Success",
|
std::string ROK = "MCDisassembler::Success",
|
||||||
std::string RFail = "MCDisassembler::Fail",
|
std::string RFail = "MCDisassembler::Fail",
|
||||||
std::string L = "") :
|
std::string L = "") :
|
||||||
Records(R), Target(R),
|
Target(R),
|
||||||
NumberedInstructions(Target.getInstructionsByEnumValue()),
|
|
||||||
PredicateNamespace(PredicateNamespace),
|
PredicateNamespace(PredicateNamespace),
|
||||||
GuardPrefix(GPrefix), GuardPostfix(GPostfix),
|
GuardPrefix(GPrefix), GuardPostfix(GPostfix),
|
||||||
ReturnOK(ROK), ReturnFail(RFail), Locals(L) {}
|
ReturnOK(ROK), ReturnFail(RFail), Locals(L) {}
|
||||||
|
@ -67,9 +66,7 @@ public:
|
||||||
void run(raw_ostream &o);
|
void run(raw_ostream &o);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RecordKeeper &Records;
|
|
||||||
CodeGenTarget Target;
|
CodeGenTarget Target;
|
||||||
std::vector<const CodeGenInstruction*> NumberedInstructions;
|
|
||||||
public:
|
public:
|
||||||
std::string PredicateNamespace;
|
std::string PredicateNamespace;
|
||||||
std::string GuardPrefix, GuardPostfix;
|
std::string GuardPrefix, GuardPostfix;
|
||||||
|
|
Loading…
Reference in New Issue