introduce typedef for complicated vector, and use it too
authorGabor Greif <ggreif@gmail.com>
Sat, 17 Jan 2009 00:09:08 +0000 (00:09 +0000)
committerGabor Greif <ggreif@gmail.com>
Sat, 17 Jan 2009 00:09:08 +0000 (00:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62384 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/CallGraph.h
lib/Transforms/Utils/InlineFunction.cpp

index 27a6ab357fdfaaea0eb99f4937015e6b40a00d45..de839694dc8a3d812635c6321eeab54683856d45 100644 (file)
@@ -174,6 +174,8 @@ class CallGraphNode {
 
   CallGraphNode(const CallGraphNode &);           // Do not implement
 public:
+  typedef std::vector<CallRecord> CalledFunctionsVector;
+
   //===---------------------------------------------------------------------
   // Accessor methods...
   //
index 6704b60fe1b2def3f57f33e053667d971449e10c..cee224aae52400ff9b6727ff40068ed053e9c66a 100644 (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();