Emit register unit root tables.
[oota-llvm.git] / include / llvm / MC / MCCodeEmitter.h
index ad42dc2e5b46e0bd2402cb3f3ee951cefb11cfe0..934ef69ce3fe80aa4f9ea71d0dbad89aa45d7aa2 100644 (file)
 #define LLVM_MC_MCCODEEMITTER_H
 
 namespace llvm {
+class MCFixup;
 class MCInst;
 class raw_ostream;
+template<typename T> class SmallVectorImpl;
 
 /// MCCodeEmitter - Generic instruction encoding interface.
 class MCCodeEmitter {
+private:
   MCCodeEmitter(const MCCodeEmitter &);   // DO NOT IMPLEMENT
   void operator=(const MCCodeEmitter &);  // DO NOT IMPLEMENT
 protected: // Can only create subclasses.
   MCCodeEmitter();
+
 public:
   virtual ~MCCodeEmitter();
 
   /// EncodeInstruction - Encode the given \arg Inst to bytes on the output
   /// stream \arg OS.
-  virtual void EncodeInstruction(const MCInst &Inst, raw_ostream &OS) const = 0;
+  virtual void EncodeInstruction(const MCInst &Inst, raw_ostream &OS,
+                                 SmallVectorImpl<MCFixup> &Fixups) const = 0;
 };
 
 } // End llvm namespace