[weak vtables] Remove a bunch of weak vtables
[oota-llvm.git] / lib / Target / Mips / MipsInstrInfo.cpp
index 7b04a9a375983820cc6e76562c49b6a136975e3c..a36dcc8995d77a20926b6fbbf995e91e81b65a63 100644 (file)
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/TargetRegistry.h"
 
-#define GET_INSTRINFO_CTOR
+#define GET_INSTRINFO_CTOR_DTOR
 #include "MipsGenInstrInfo.inc"
 
 using namespace llvm;
 
+// pin vtable to this file
+void MipsInstrInfo::anchor() {}
+
 MipsInstrInfo::MipsInstrInfo(MipsTargetMachine &tm, unsigned UncondBr)
   : MipsGenInstrInfo(Mips::ADJCALLSTACKDOWN, Mips::ADJCALLSTACKUP),
     TM(tm), UncondBrOpc(UncondBr) {}