diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp index b406df3f1ba..3f2b49fda65 100644 --- a/utils/TableGen/InstrInfoEmitter.cpp +++ b/utils/TableGen/InstrInfoEmitter.cpp @@ -19,8 +19,8 @@ #include using namespace llvm; -void InstrInfoEmitter::printDefList(const std::vector &Uses, - unsigned Num, std::ostream &OS) const { +static void PrintDefList(const std::vector &Uses, + unsigned Num, std::ostream &OS) { OS << "static const unsigned ImplicitList" << Num << "[] = { "; for (unsigned i = 0, e = Uses.size(); i != e; ++i) OS << getQualifiedName(Uses[i]) << ", "; @@ -163,12 +163,12 @@ void InstrInfoEmitter::run(std::ostream &OS) { std::vector Uses = Inst->getValueAsListOfDefs("Uses"); if (!Uses.empty()) { unsigned &IL = EmittedLists[Uses]; - if (!IL) printDefList(Uses, IL = ++ListNumber, OS); + if (!IL) PrintDefList(Uses, IL = ++ListNumber, OS); } std::vector Defs = Inst->getValueAsListOfDefs("Defs"); if (!Defs.empty()) { unsigned &IL = EmittedLists[Defs]; - if (!IL) printDefList(Defs, IL = ++ListNumber, OS); + if (!IL) PrintDefList(Defs, IL = ++ListNumber, OS); } } diff --git a/utils/TableGen/InstrInfoEmitter.h b/utils/TableGen/InstrInfoEmitter.h index b6d02459a5c..2dd3a0f44fc 100644 --- a/utils/TableGen/InstrInfoEmitter.h +++ b/utils/TableGen/InstrInfoEmitter.h @@ -41,22 +41,21 @@ public: private: typedef std::map, unsigned> OperandInfoMapTy; - void printDefList(const std::vector &Uses, unsigned Num, - std::ostream &OS) const; void emitRecord(const CodeGenInstruction &Inst, unsigned Num, Record *InstrInfo, std::map, unsigned> &EL, const OperandInfoMapTy &OpInfo, std::ostream &OS); + void emitShiftedValue(Record *R, StringInit *Val, IntInit *Shift, + std::ostream &OS); + // Itinerary information. void GatherItinClasses(); unsigned getItinClassNumber(const Record *InstRec); + // Operand information. void EmitOperandInfo(std::ostream &OS, OperandInfoMapTy &OperandInfoIDs); std::vector GetOperandInfo(const CodeGenInstruction &Inst); - - void emitShiftedValue(Record *R, StringInit *Val, IntInit *Shift, - std::ostream &OS); }; } // End llvm namespace