aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-11-05 01:39:16 +0000
committerDevang Patel <dpatel@apple.com>2008-11-05 01:39:16 +0000
commitb7c6bf1e073088635951435acedff793add1cefd (patch)
tree47b97f45f521011bc4ab5b628557cf32f53303a4 /include/llvm/Transforms
parent8c3b47f623b9531c7bd962b9d3c0caeec668b395 (diff)
downloadexternal_llvm-b7c6bf1e073088635951435acedff793add1cefd.zip
external_llvm-b7c6bf1e073088635951435acedff793add1cefd.tar.gz
external_llvm-b7c6bf1e073088635951435acedff793add1cefd.tar.bz2
Do now allow InlineAlways pass to remove dead functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58744 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/IPO/InlinerPass.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Transforms/IPO/InlinerPass.h b/include/llvm/Transforms/IPO/InlinerPass.h
index 082dd82..7c3632f 100644
--- a/include/llvm/Transforms/IPO/InlinerPass.h
+++ b/include/llvm/Transforms/IPO/InlinerPass.h
@@ -61,6 +61,10 @@ struct Inliner : public CallGraphSCCPass {
///
virtual float getInlineFudgeFactor(CallSite CS) = 0;
+ /// removeDeadFunctions - Remove dead functions that are not included in
+ /// DNR (Do Not Remove) list.
+ bool removeDeadFunctions(CallGraph &CG,
+ SmallPtrSet<const Function *, 16> *DNR = NULL);
private:
// InlineThreshold - Cache the value here for easy access.
unsigned InlineThreshold;