introduce typedef for complicated vector, and use it too

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62384 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Gabor Greif 2009-01-17 00:09:08 +00:00
parent 7ac9cdfc99
commit 125329891f
2 changed files with 3 additions and 2 deletions

View File

@ -174,6 +174,8 @@ class CallGraphNode {
CallGraphNode(const CallGraphNode &); // Do not implement
public:
typedef std::vector<CallRecord> CalledFunctionsVector;
//===---------------------------------------------------------------------
// Accessor methods...
//

View File

@ -158,8 +158,7 @@ static void UpdateCallGraphAfterInlining(CallSite CS,
CallGraphNode::iterator I = CalleeNode->begin(), E = CalleeNode->end();
// Consider the case where CalleeNode == CallerNode.
typedef std::pair<CallSite, CallGraphNode*> CallRecord;
std::vector<CallRecord> CallCache;
CallGraphNode::CalledFunctionsVector CallCache;
if (CalleeNode == CallerNode) {
CallCache.assign(I, E);
I = CallCache.begin();