diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-03-13 06:39:00 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-03-13 06:39:00 +0000 |
commit | ba6d8107527ff0f59180bae828efc631c8619d84 (patch) | |
tree | c8f2692f24aa9a975ac856717be5646dcd043291 /llvm/utils | |
parent | 84208dcf027788c0e106776b46882be073978ead (diff) | |
download | bcm5719-llvm-ba6d8107527ff0f59180bae828efc631c8619d84.tar.gz bcm5719-llvm-ba6d8107527ff0f59180bae828efc631c8619d84.zip |
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
Diffstat (limited to 'llvm/utils')
-rw-r--r-- | llvm/utils/TableGen/FixedLenDecoderEmitter.cpp | 3 | ||||
-rw-r--r-- | llvm/utils/TableGen/FixedLenDecoderEmitter.h | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp index 19e86db41a7..524d7566b5e 100644 --- a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp +++ b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp @@ -1527,7 +1527,8 @@ void FixedLenDecoderEmitter::run(raw_ostream &o) o << "namespace llvm {\n\n"; // 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::vector<unsigned> > OpcMap; std::map<unsigned, std::vector<OperandInfo> > Operands; diff --git a/llvm/utils/TableGen/FixedLenDecoderEmitter.h b/llvm/utils/TableGen/FixedLenDecoderEmitter.h index 90e8d869ac0..1ba7dfdad96 100644 --- a/llvm/utils/TableGen/FixedLenDecoderEmitter.h +++ b/llvm/utils/TableGen/FixedLenDecoderEmitter.h @@ -57,8 +57,7 @@ public: std::string ROK = "MCDisassembler::Success", std::string RFail = "MCDisassembler::Fail", std::string L = "") : - Records(R), Target(R), - NumberedInstructions(Target.getInstructionsByEnumValue()), + Target(R), PredicateNamespace(PredicateNamespace), GuardPrefix(GPrefix), GuardPostfix(GPostfix), ReturnOK(ROK), ReturnFail(RFail), Locals(L) {} @@ -67,9 +66,7 @@ public: void run(raw_ostream &o); private: - RecordKeeper &Records; CodeGenTarget Target; - std::vector<const CodeGenInstruction*> NumberedInstructions; public: std::string PredicateNamespace; std::string GuardPrefix, GuardPostfix; |