diff --git a/include/llvm/Transforms/FunctionInlining.h b/include/llvm/Transforms/FunctionInlining.h index e68b08136e6..f9ef10bd11e 100644 --- a/include/llvm/Transforms/FunctionInlining.h +++ b/include/llvm/Transforms/FunctionInlining.h @@ -8,10 +8,6 @@ #define LLVM_TRANSFORMS_FUNCTION_INLINING_H class CallInst; -class Pass; - -Pass *createFunctionInliningPass(); - // InlineFunction - This function forcibly inlines the called function into the // basic block of the caller. This returns true if it is not possible to inline // this call. The program is still in a well defined state if this occurs diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h index 5f96a0986dc..ba8fd02d9cd 100644 --- a/include/llvm/Transforms/IPO.h +++ b/include/llvm/Transforms/IPO.h @@ -55,6 +55,11 @@ Pass *createFunctionExtractionPass(Function *F); // Pass *createFunctionResolvingPass(); +//===----------------------------------------------------------------------===// +// createFunctionInliningPass - Return a new pass object that uses a heuristic +// to inline direct function calls to small functions. +// +Pass *createFunctionInliningPass(); //===----------------------------------------------------------------------===// // createInternalizePass - This pass loops over all of the functions in the