Generalize the register matching code in DAGISel a bit.
[oota-llvm.git] / utils / TableGen / AsmWriterEmitter.h
index 302722d6df06fbd0ec763374a16a2b6dcfc6d6b9..5e8d6f5b7fe7529cd90b1b6a176d56becc6bef54 100644 (file)
@@ -32,9 +32,14 @@ namespace llvm {
     AsmWriterEmitter(RecordKeeper &R) : Records(R) {}
 
     // run - Output the asmwriter, returning true on failure.
-    void run(std::ostream &o);
+    void run(raw_ostream &o);
 
 private:
+    void EmitPrintInstruction(raw_ostream &o);
+    void EmitGetRegisterName(raw_ostream &o);
+    void EmitGetInstructionName(raw_ostream &o);
+    void EmitPrintAliasInstruction(raw_ostream &O);
+    
     AsmWriterInst *getAsmWriterInstByID(unsigned ID) const {
       assert(ID < NumberedInstructions.size());
       std::map<const CodeGenInstruction*, AsmWriterInst*>::const_iterator I =