Move the definition of this to the source file to anchor the vtable.
llvm-svn: 116779
diff --git a/llvm/include/llvm/MC/MCObjectFormat.h b/llvm/include/llvm/MC/MCObjectFormat.h
index 2ee3ba3..5c3f003 100644
--- a/llvm/include/llvm/MC/MCObjectFormat.h
+++ b/llvm/include/llvm/MC/MCObjectFormat.h
@@ -15,7 +15,7 @@
class MCObjectFormat {
public:
- virtual ~MCObjectFormat() {}
+ virtual ~MCObjectFormat();
/// isAbsolute - Check if A - B is an absolute value
///
diff --git a/llvm/lib/MC/MCObjectFormat.cpp b/llvm/lib/MC/MCObjectFormat.cpp
index 07d361c..aeff334 100644
--- a/llvm/lib/MC/MCObjectFormat.cpp
+++ b/llvm/lib/MC/MCObjectFormat.cpp
@@ -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.