summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/FixedLenDecoderEmitter.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-03-13 06:39:00 +0000
committerCraig Topper <craig.topper@gmail.com>2012-03-13 06:39:00 +0000
commitba6d8107527ff0f59180bae828efc631c8619d84 (patch)
treec8f2692f24aa9a975ac856717be5646dcd043291 /llvm/utils/TableGen/FixedLenDecoderEmitter.h
parent84208dcf027788c0e106776b46882be073978ead (diff)
downloadbcm5719-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/TableGen/FixedLenDecoderEmitter.h')
-rw-r--r--llvm/utils/TableGen/FixedLenDecoderEmitter.h5
1 files changed, 1 insertions, 4 deletions
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;
OpenPOWER on IntegriCloud