mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 05:00:26 +00:00
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:
parent
7ac9cdfc99
commit
125329891f
@ -174,6 +174,8 @@ class CallGraphNode {
|
||||
|
||||
CallGraphNode(const CallGraphNode &); // Do not implement
|
||||
public:
|
||||
typedef std::vector<CallRecord> CalledFunctionsVector;
|
||||
|
||||
//===---------------------------------------------------------------------
|
||||
// Accessor methods...
|
||||
//
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user