aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Transforms/FunctionInlining.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-18 05:21:56 +0000
committerChris Lattner <sabre@nondot.org>2001-10-18 05:21:56 +0000
commitb44523bd9d8975e9ce7e6ac1360fbe8d447bff3a (patch)
tree7404dad3149d2e9cd9b0ababced565943b9bab9b /include/llvm/Transforms/FunctionInlining.h
parentedcf6491a8ca5317d036fc685fd2a1082cb9a1a5 (diff)
Convert to new simpler pass structure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@877 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/FunctionInlining.h')
-rw-r--r--include/llvm/Transforms/FunctionInlining.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Transforms/FunctionInlining.h b/include/llvm/Transforms/FunctionInlining.h
index 5a87c1b8e5..373708d6b0 100644
--- a/include/llvm/Transforms/FunctionInlining.h
+++ b/include/llvm/Transforms/FunctionInlining.h
@@ -13,13 +13,13 @@ class CallInst;
namespace opt {
-struct MethodInlining : public StatelessPass<MethodInlining> {
+struct MethodInlining : public Pass {
// DoMethodInlining - Use a heuristic based approach to inline methods that
// seem to look good.
//
static bool doMethodInlining(Method *M);
- inline static bool doPerMethodWork(Method *M) {
+ virtual bool doPerMethodWork(Method *M) {
return doMethodInlining(M);
}
};