aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineFunctionPass.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-14 23:08:47 +0000
committerChris Lattner <sabre@nondot.org>2006-07-14 23:08:47 +0000
commitefb9b813fa74d3134dd185df10f6577ceab72bcd (patch)
treea1395a500515b3d7008325f43842ca0836c34ab0 /include/llvm/CodeGen/MachineFunctionPass.h
parenta3b5939caa0331eea2efba8a01d04f60f449daeb (diff)
downloadexternal_llvm-efb9b813fa74d3134dd185df10f6577ceab72bcd.zip
external_llvm-efb9b813fa74d3134dd185df10f6577ceab72bcd.tar.gz
external_llvm-efb9b813fa74d3134dd185df10f6577ceab72bcd.tar.bz2
Add an out-of-line virtual function to home class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29154 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineFunctionPass.h')
-rw-r--r--include/llvm/CodeGen/MachineFunctionPass.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineFunctionPass.h b/include/llvm/CodeGen/MachineFunctionPass.h
index 973babd..77af52a 100644
--- a/include/llvm/CodeGen/MachineFunctionPass.h
+++ b/include/llvm/CodeGen/MachineFunctionPass.h
@@ -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