aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Transforms/FunctionInlining.h4
-rw-r--r--include/llvm/Transforms/IPO.h5
2 files changed, 5 insertions, 4 deletions
diff --git a/include/llvm/Transforms/FunctionInlining.h b/include/llvm/Transforms/FunctionInlining.h
index e68b08136e..f9ef10bd11 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 5f96a0986d..ba8fd02d9c 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