[weak vtables] Remove a bunch of weak vtables
[oota-llvm.git] / lib / Target / Sparc / SparcInstrInfo.cpp
index 93d7b56501f0b70238fb3d4a3259d05f7df0b757..5e5e37a778af074a43d67a648b0226d14725691d 100644 (file)
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/TargetRegistry.h"
 
-#define GET_INSTRINFO_CTOR
+#define GET_INSTRINFO_CTOR_DTOR
 #include "SparcGenInstrInfo.inc"
 
 using namespace llvm;
 
+
+// pin vtable to this file
+void SparcInstrInfo::anchor() {}
+
 SparcInstrInfo::SparcInstrInfo(SparcSubtarget &ST)
   : SparcGenInstrInfo(SP::ADJCALLSTACKDOWN, SP::ADJCALLSTACKUP),
     RI(ST), Subtarget(ST) {