aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-16 22:42:17 +0000
committerChris Lattner <sabre@nondot.org>2010-04-16 22:42:17 +0000
commitc9976c7a4b78b8116cda74bf89a593d478aaab37 (patch)
tree1b0c30e6794a3a81e34f539c6e398530b2d34648 /include/llvm/Transforms
parent6b5e2261f03cd10090e15e29f0cb527298da111f (diff)
downloadexternal_llvm-c9976c7a4b78b8116cda74bf89a593d478aaab37.zip
external_llvm-c9976c7a4b78b8116cda74bf89a593d478aaab37.tar.gz
external_llvm-c9976c7a4b78b8116cda74bf89a593d478aaab37.tar.bz2
introduce a new CallGraphSCC class, and pass it around
to CallGraphSCCPass's instead of passing around a std::vector<CallGraphNode*>. No functionality change, but now we have a much tidier interface. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101558 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/IPO/InlinerPass.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Transforms/IPO/InlinerPass.h b/include/llvm/Transforms/IPO/InlinerPass.h
index c5be59a..6af7ed7 100644
--- a/include/llvm/Transforms/IPO/InlinerPass.h
+++ b/include/llvm/Transforms/IPO/InlinerPass.h
@@ -40,7 +40,7 @@ struct Inliner : public CallGraphSCCPass {
// Main run interface method, this implements the interface required by the
// Pass class.
- virtual bool runOnSCC(std::vector<CallGraphNode *> &SCC);
+ virtual bool runOnSCC(CallGraphSCC &SCC);
// doFinalization - Remove now-dead linkonce functions at the end of
// processing to avoid breaking the SCC traversal.
@@ -77,7 +77,7 @@ struct Inliner : public CallGraphSCCPass {
/// growCachedCostInfo - update the cached cost info for Caller after Callee
/// has been inlined.
- virtual void growCachedCostInfo(Function* Caller, Function* Callee) = 0;
+ virtual void growCachedCostInfo(Function *Caller, Function *Callee) = 0;
/// removeDeadFunctions - Remove dead functions that are not included in
/// DNR (Do Not Remove) list.