From 33bd74d06dc07cf53e5b4d8b58b5110f5583b0ca Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 22 Jan 2016 05:59:43 +0000 Subject: [PATCH] [TableGen] Make a class member local to the function that populates it and consumes it later. NFC llvm-svn: 258490 --- utils/TableGen/AsmWriterEmitter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp index 681012974ce..dd617a65d1a 100644 --- a/utils/TableGen/AsmWriterEmitter.cpp +++ b/utils/TableGen/AsmWriterEmitter.cpp @@ -38,7 +38,6 @@ class AsmWriterEmitter { CodeGenTarget Target; ArrayRef NumberedInstructions; std::vector Instructions; - std::vector PrintMethods; public: AsmWriterEmitter(RecordKeeper &R); @@ -789,6 +788,8 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) { // before it can be matched to the mnemonic. std::map> IAPrinterMap; + std::vector PrintMethods; + // A list of MCOperandPredicates for all operands in use, and the reverse map std::vector MCOpPredicates; DenseMap MCOpPredicateMap;