[llvm-commits] [llvm] r116779 - in /llvm/trunk: include/llvm/MC/MCObjectFormat.h lib/MC/MCObjectFormat.cpp

Chandler Carruth chandlerc at gmail.com
Mon Oct 18 17:37:30 PDT 2010


Author: chandlerc
Date: Mon Oct 18 19:37:30 2010
New Revision: 116779

URL: http://llvm.org/viewvc/llvm-project?rev=116779&view=rev
Log:
Move the definition of this to the source file to anchor the vtable.

Modified:
    llvm/trunk/include/llvm/MC/MCObjectFormat.h
    llvm/trunk/lib/MC/MCObjectFormat.cpp

Modified: llvm/trunk/include/llvm/MC/MCObjectFormat.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCObjectFormat.h?rev=116779&r1=116778&r2=116779&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCObjectFormat.h (original)
+++ llvm/trunk/include/llvm/MC/MCObjectFormat.h Mon Oct 18 19:37:30 2010
@@ -15,7 +15,7 @@
 
 class MCObjectFormat {
 public:
-  virtual ~MCObjectFormat() {}
+  virtual ~MCObjectFormat();
 
   /// isAbsolute - Check if A - B is an absolute value
   ///

Modified: llvm/trunk/lib/MC/MCObjectFormat.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCObjectFormat.cpp?rev=116779&r1=116778&r2=116779&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCObjectFormat.cpp (original)
+++ llvm/trunk/lib/MC/MCObjectFormat.cpp Mon Oct 18 19:37:30 2010
@@ -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.





More information about the llvm-commits mailing list