summaryrefslogtreecommitdiff
path: root/include/llvm/Transforms/IPO
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-12 06:49:13 +0000
committerChris Lattner <sabre@nondot.org>2008-01-12 06:49:13 +0000
commit120d053e3ba810b44047fbcb719824bed5673ca9 (patch)
treed6faed5fff16ad6f2b84b013962451e628c22b6b /include/llvm/Transforms/IPO
parentd3f6a8a8f05844753fab3d7c896a373603257f5a (diff)
downloadllvm-120d053e3ba810b44047fbcb719824bed5673ca9.tar.gz
llvm-120d053e3ba810b44047fbcb719824bed5673ca9.tar.bz2
llvm-120d053e3ba810b44047fbcb719824bed5673ca9.tar.xz
Allow clients to specify the inline threshold when creating
the inliner pass. Patch by Robert Zeh. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45903 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/IPO')
-rw-r--r--include/llvm/Transforms/IPO/InlinerPass.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Transforms/IPO/InlinerPass.h b/include/llvm/Transforms/IPO/InlinerPass.h
index b2b772cf0a..26cf4e44a2 100644
--- a/include/llvm/Transforms/IPO/InlinerPass.h
+++ b/include/llvm/Transforms/IPO/InlinerPass.h
@@ -27,6 +27,7 @@ namespace llvm {
///
struct Inliner : public CallGraphSCCPass {
explicit Inliner(const void *ID);
+ explicit Inliner(const void *ID, int Threshold);
/// getAnalysisUsage - For this class, we declare that we require and preserve
/// the call graph. If the derived class implements this method, it should