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 | c007ba86f31ebe3a1c4cdba5fa23260caaf81e0f (patch) | |
tree | 13bb8debeca56a3b124320c911679828a32bae4c /utils | |
parent | 7d6fc212c2c9c363ed3166966b1db14710325c5c (diff) | |
download | llvm-c007ba86f31ebe3a1c4cdba5fa23260caaf81e0f.tar.gz |
Remove unused field from FixedLenDecoderEmitter. Move NumberedInstructions declaration from class to run method since its only used there and was being reinitialized anyway.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152616 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/FixedLenDecoderEmitter.cpp | 3 | ||||
-rw-r--r-- | utils/TableGen/FixedLenDecoderEmitter.h | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/utils/TableGen/FixedLenDecoderEmitter.cpp b/utils/TableGen/FixedLenDecoderEmitter.cpp index 19e86db41a70..524d7566b5ed 100644 --- a/utils/TableGen/FixedLenDecoderEmitter.cpp +++ b/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/utils/TableGen/FixedLenDecoderEmitter.h b/utils/TableGen/FixedLenDecoderEmitter.h index 90e8d869ac02..1ba7dfdad962 100644 --- a/utils/TableGen/FixedLenDecoderEmitter.h +++ b/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; |