aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-10-29 01:02:02 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-10-29 01:02:02 +0000
commit1a99dbfe3b70c83d3f3e4648b5868c04697cd77c (patch)
tree41431bf4c8c53891278373226e99b42be702e01d /include/llvm/Transforms
parent2d5a0b9e5473618c53cca6cec1b99d18b4c9f76b (diff)
Factor shouldInline method out of Inliner.
- No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/IPO/InlinerPass.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Transforms/IPO/InlinerPass.h b/include/llvm/Transforms/IPO/InlinerPass.h
index e0a3d2943e..00950f78e8 100644
--- a/include/llvm/Transforms/IPO/InlinerPass.h
+++ b/include/llvm/Transforms/IPO/InlinerPass.h
@@ -23,7 +23,7 @@ namespace llvm {
class CallSite;
/// Inliner - This class contains all of the helper code which is used to
-/// perform the inlining operations that does not depend on the policy.
+/// perform the inlining operations that do not depend on the policy.
///
struct Inliner : public CallGraphSCCPass {
explicit Inliner(void *ID);
@@ -63,6 +63,10 @@ struct Inliner : public CallGraphSCCPass {
private:
// InlineThreshold - Cache the value here for easy access.
unsigned InlineThreshold;
+
+ /// shouldInline - Return true if the inliner should attempt to
+ /// inline at the given CallSite.
+ bool shouldInline(CallSite CS);
};
} // End llvm namespace