aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-03-23 23:39:20 +0000
committerDale Johannesen <dalej@apple.com>2009-03-23 23:39:20 +0000
commit16581bf931c0ccf2f8993397acfa4e1d509a68dc (patch)
treefea852e53eea69ac5cfc41a29ae7d85e7823381c /lib/Transforms
parent5d088fee7cf20309669f85d2027e2b010b40025b (diff)
downloadexternal_llvm-16581bf931c0ccf2f8993397acfa4e1d509a68dc.zip
external_llvm-16581bf931c0ccf2f8993397acfa4e1d509a68dc.tar.gz
external_llvm-16581bf931c0ccf2f8993397acfa4e1d509a68dc.tar.bz2
Use a SmallPtrSet instead of std::set.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67578 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/IPO/Inliner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/Inliner.cpp b/lib/Transforms/IPO/Inliner.cpp
index c38a6ae..b589792 100644
--- a/lib/Transforms/IPO/Inliner.cpp
+++ b/lib/Transforms/IPO/Inliner.cpp
@@ -52,7 +52,7 @@ void Inliner::getAnalysisUsage(AnalysisUsage &Info) const {
// InlineCallIfPossible - If it is possible to inline the specified call site,
// do so and update the CallGraph for this operation.
bool Inliner::InlineCallIfPossible(CallSite CS, CallGraph &CG,
- const std::set<Function*> &SCCFunctions,
+ const SmallPtrSet<Function*, 8> &SCCFunctions,
const TargetData &TD) {
Function *Callee = CS.getCalledFunction();
Function *Caller = CS.getCaller();
@@ -128,7 +128,7 @@ bool Inliner::runOnSCC(const std::vector<CallGraphNode*> &SCC) {
CallGraph &CG = getAnalysis<CallGraph>();
TargetData &TD = getAnalysis<TargetData>();
- std::set<Function*> SCCFunctions;
+ SmallPtrSet<Function*, 8> SCCFunctions;
DOUT << "Inliner visiting SCC:";
for (unsigned i = 0, e = SCC.size(); i != e; ++i) {
Function *F = SCC[i]->getFunction();