diff options
author | Pedro Artigas <partigas@apple.com> | 2012-12-14 18:52:11 +0000 |
---|---|---|
committer | Pedro Artigas <partigas@apple.com> | 2012-12-14 18:52:11 +0000 |
commit | 99cbdde6198623ff014c776743caec2cf48f4840 (patch) | |
tree | 37ba9f08c31167816c6ba44f76b8833601780ebf /include/llvm/MC/MCMachObjectWriter.h | |
parent | a5ed031fbcec67081d4857c9000f0180840fe2d5 (diff) |
Add more reset methods to make all objects that the backend may use for outputting code have a reset, some are not used but were declared for completeness
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170227 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCMachObjectWriter.h')
-rw-r--r-- | include/llvm/MC/MCMachObjectWriter.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/llvm/MC/MCMachObjectWriter.h b/include/llvm/MC/MCMachObjectWriter.h index efaabfb9e8..2ddde0b68a 100644 --- a/include/llvm/MC/MCMachObjectWriter.h +++ b/include/llvm/MC/MCMachObjectWriter.h @@ -45,6 +45,13 @@ protected: public: virtual ~MCMachObjectTargetWriter(); + /// @name Lifetime Management + /// @{ + + virtual void reset() {}; + + /// @} + /// @name Accessors /// @{ @@ -111,6 +118,13 @@ public: : MCObjectWriter(_OS, _IsLittleEndian), TargetObjectWriter(MOTW) { } + /// @name Lifetime management Methods + /// @{ + + virtual void reset(); + + /// @} + /// @name Utility Methods /// @{ |