[weak vtables] Remove a bunch of weak vtables
[oota-llvm.git] / lib / Target / MSP430 / MSP430InstrInfo.cpp
index c8505946dfaa818a763f6985dde518d1af521225..f0695a7f7c268a68252e41a96f413bfefaf1ee7c 100644 (file)
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/TargetRegistry.h"
 
-#define GET_INSTRINFO_CTOR
+#define GET_INSTRINFO_CTOR_DTOR
 #include "MSP430GenInstrInfo.inc"
 
 using namespace llvm;
 
+// pin vtable to this file
+void MSP430InstrInfo::anchor() {}
+
 MSP430InstrInfo::MSP430InstrInfo(MSP430TargetMachine &tm)
   : MSP430GenInstrInfo(MSP430::ADJCALLSTACKDOWN, MSP430::ADJCALLSTACKUP),
     RI(tm) {}