Add an out-of-line virtual function to home class.
authorChris Lattner <sabre@nondot.org>
Fri, 14 Jul 2006 23:08:47 +0000 (23:08 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 14 Jul 2006 23:08:47 +0000 (23:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29154 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineFunctionPass.h
lib/CodeGen/MachineFunction.cpp

index 973babd702a838a70bfef84c5213376cd4ef1422..77af52a34748f47c3a54c13e2857e3f77fcba5d5 100644 (file)
@@ -33,10 +33,11 @@ struct MachineFunctionPass : public FunctionPass {
 
   // FIXME: This pass should declare that the pass does not invalidate any LLVM
   // passes.
-
   virtual bool runOnFunction(Function &F) {
     return runOnMachineFunction(MachineFunction::get(&F));
   }
+  
+  virtual void virtfn();  // out of line virtual fn to give class a home.
 };
 
 } // End llvm namespace
index 05e863be75068ac384b44eedaac956833867a149..6a36c4a58c5e082c08e132ea101af46f91abffe4 100644 (file)
@@ -38,6 +38,8 @@ using namespace llvm;
 static AnnotationID MF_AID(
   AnnotationManager::getID("CodeGen::MachineCodeForFunction"));
 
+// Out of line virtual function to home classes.
+void MachineFunctionPass::virtfn() {}
 
 namespace {
   struct VISIBILITY_HIDDEN Printer : public MachineFunctionPass {