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 520cc7fe6c..abc08fdbad 100644
--- a/include/llvm/Transforms/FunctionInlining.h
+++ b/include/llvm/Transforms/FunctionInlining.h
@@ -13,13 +13,13 @@ class CallInst;
namespace opt {
-struct MethodInlining : public Pass {
+struct MethodInlining : public MethodPass {
// DoMethodInlining - Use a heuristic based approach to inline methods that
// seem to look good.
//
static bool doMethodInlining(Method *M);
- virtual bool doPerMethodWork(Method *M) {
+ virtual bool runOnMethod(Method *M) {
return doMethodInlining(M);
}
};