[llvm] r258490 - [TableGen] Make a class member local to the function that populates it and consumes it later. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 21 21:59:43 PST 2016


Author: ctopper
Date: Thu Jan 21 23:59:43 2016
New Revision: 258490

URL: http://llvm.org/viewvc/llvm-project?rev=258490&view=rev
Log:
[TableGen] Make a class member local to the function that populates it and consumes it later. NFC

Modified:
    llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp

Modified: llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp?rev=258490&r1=258489&r2=258490&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp Thu Jan 21 23:59:43 2016
@@ -38,7 +38,6 @@ class AsmWriterEmitter {
   CodeGenTarget Target;
   ArrayRef<const CodeGenInstruction *> NumberedInstructions;
   std::vector<AsmWriterInst> Instructions;
-  std::vector<std::string> PrintMethods;
 public:
   AsmWriterEmitter(RecordKeeper &R);
 
@@ -789,6 +788,8 @@ void AsmWriterEmitter::EmitPrintAliasIns
   // before it can be matched to the mnemonic.
   std::map<std::string, std::vector<IAPrinter>> IAPrinterMap;
 
+  std::vector<std::string> PrintMethods;
+
   // A list of MCOperandPredicates for all operands in use, and the reverse map
   std::vector<const Record*> MCOpPredicates;
   DenseMap<const Record*, unsigned> MCOpPredicateMap;




More information about the llvm-commits mailing list