aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Transforms/FunctionInlining.h
diff options
context:
space:
mode:
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);
}
};