summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/Inliner.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Transforms/IPO/Inliner.h')
-rw-r--r--llvm/lib/Transforms/IPO/Inliner.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/Inliner.h b/llvm/lib/Transforms/IPO/Inliner.h
index b63fe2ac05c..45d5db726c0 100644
--- a/llvm/lib/Transforms/IPO/Inliner.h
+++ b/llvm/lib/Transforms/IPO/Inliner.h
@@ -35,6 +35,11 @@ struct Inliner : public CallGraphSCCPass {
// Pass class.
virtual bool runOnSCC(const std::vector<CallGraphNode *> &SCC);
+ // doFinalization - Remove now-dead linkonce functions at the end of
+ // processing to avoid breaking the SCC traversal.
+ virtual bool doFinalization(CallGraph &CG);
+
+
/// This method returns the value specified by the -inline-threshold value,
/// specified on the command line. This is typically not directly needed.
///
OpenPOWER on IntegriCloud