Move the definition of this to the source file to anchor the vtable.
authorChandler Carruth <chandlerc@gmail.com>
Tue, 19 Oct 2010 00:37:30 +0000 (00:37 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 19 Oct 2010 00:37:30 +0000 (00:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116779 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCObjectFormat.h
lib/MC/MCObjectFormat.cpp

index 2ee3ba3cda4f2f169b25332259da4c0e41a5cc43..5c3f003696065eb40b96110fe9f2f4e5d367d800 100644 (file)
@@ -15,7 +15,7 @@ class MCSymbol;
 
 class MCObjectFormat {
 public:
-  virtual ~MCObjectFormat() {}
+  virtual ~MCObjectFormat();
 
   /// isAbsolute - Check if A - B is an absolute value
   ///
index 07d361c8a49d0b059624005560ee11731f6660cf..aeff3347187f93b387f538f52cb21288ebd6a81a 100644 (file)
@@ -12,6 +12,9 @@
 
 using namespace llvm;
 
+MCObjectFormat::~MCObjectFormat() {
+}
+
 bool MCELFObjectFormat::isAbsolute(bool IsSet, const MCSymbol &A,
                                    const MCSymbol &B) const {
   // On ELF A - B is absolute if A and B are in the same section.