aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-10-19 00:37:30 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-10-19 00:37:30 +0000
commitb5a2d3f8e3b40c3076d03c5db7c4f0387e58b53b (patch)
tree1819cf7b973eb9b4193fbc4177d3361c3acd5d91
parent1dcb1eafbc0c94dc0cb9cd0d3f002524de8a5a92 (diff)
downloadexternal_llvm-b5a2d3f8e3b40c3076d03c5db7c4f0387e58b53b.zip
external_llvm-b5a2d3f8e3b40c3076d03c5db7c4f0387e58b53b.tar.gz
external_llvm-b5a2d3f8e3b40c3076d03c5db7c4f0387e58b53b.tar.bz2
Move the definition of this to the source file to anchor the vtable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116779 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/MC/MCObjectFormat.h2
-rw-r--r--lib/MC/MCObjectFormat.cpp3
2 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/MC/MCObjectFormat.h b/include/llvm/MC/MCObjectFormat.h
index 2ee3ba3..5c3f003 100644
--- a/include/llvm/MC/MCObjectFormat.h
+++ b/include/llvm/MC/MCObjectFormat.h
@@ -15,7 +15,7 @@ class MCSymbol;
class MCObjectFormat {
public:
- virtual ~MCObjectFormat() {}
+ virtual ~MCObjectFormat();
/// isAbsolute - Check if A - B is an absolute value
///
diff --git a/lib/MC/MCObjectFormat.cpp b/lib/MC/MCObjectFormat.cpp
index 07d361c..aeff334 100644
--- a/lib/MC/MCObjectFormat.cpp
+++ b/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.