mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-05 19:10:19 +00:00
introduce typedef for complicated vector, and use it too
llvm-svn: 62384
This commit is contained in:
parent
563134282c
commit
20f36c51bd
@ -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…
x
Reference in New Issue
Block a user