[ARM] Fix several state persistence bugs
[oota-llvm.git] / include / llvm / MC / MCStreamer.h
index 494f02dfad3ec4cbde9c8a05c5a422db542aeebc..04d143ffef66d62deb115db06e2ff3361a6cf048 100644 (file)
@@ -131,6 +131,10 @@ public:
 
   void finish() override;
 
 
   void finish() override;
 
+  /// Reset any state between object emissions, i.e. the equivalent of
+  /// MCStreamer's reset method.
+  virtual void reset();
+
   /// Callback used to implement the ldr= pseudo.
   /// Add a new entry to the constant pool for the current section and return an
   /// MCExpr that can be used to refer to the constant pool location.
   /// Callback used to implement the ldr= pseudo.
   /// Add a new entry to the constant pool for the current section and return an
   /// MCExpr that can be used to refer to the constant pool location.