Add a virtual destructor to silence a GCC warning.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 18 Oct 2010 23:18:51 +0000 (23:18 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 18 Oct 2010 23:18:51 +0000 (23:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116766 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCObjectFormat.h

index 80b7295f1f95bbb94e79ade937513fd2edf299b9..2ee3ba3cda4f2f169b25332259da4c0e41a5cc43 100644 (file)
@@ -15,6 +15,8 @@ class MCSymbol;
 
 class MCObjectFormat {
 public:
+  virtual ~MCObjectFormat() {}
+
   /// isAbsolute - Check if A - B is an absolute value
   ///
   /// \param InSet - True if this expression is in a set. For example: