Remove unused field from FixedLenDecoderEmitter. Move NumberedInstructions declaratio...
authorCraig Topper <craig.topper@gmail.com>
Tue, 13 Mar 2012 06:39:00 +0000 (06:39 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 13 Mar 2012 06:39:00 +0000 (06:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152616 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/FixedLenDecoderEmitter.cpp
utils/TableGen/FixedLenDecoderEmitter.h

index 19e86db41a7037bd742d3f5c964c4b0aa621b192..524d7566b5ed27b4751fd54bf99a21353e6b7d72 100644 (file)
@@ -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;
index 90e8d869ac0229c7cdd331a7b2e967f75c8d80be..1ba7dfdad96236953525bc1272b5c0c7bd218b6c 100644 (file)
@@ -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;