[llvm-commits] [llvm] r62384 - in /llvm/trunk: include/llvm/Analysis/CallGraph.h lib/Transforms/Utils/InlineFunction.cpp
Gabor Greif
ggreif at gmail.com
Fri Jan 16 16:09:08 PST 2009
Author: ggreif
Date: Fri Jan 16 18:09:08 2009
New Revision: 62384
URL: http://llvm.org/viewvc/llvm-project?rev=62384&view=rev
Log:
introduce typedef for complicated vector, and use it too
Modified:
llvm/trunk/include/llvm/Analysis/CallGraph.h
llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
Modified: llvm/trunk/include/llvm/Analysis/CallGraph.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/CallGraph.h?rev=62384&r1=62383&r2=62384&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/CallGraph.h (original)
+++ llvm/trunk/include/llvm/Analysis/CallGraph.h Fri Jan 16 18:09:08 2009
@@ -174,6 +174,8 @@
CallGraphNode(const CallGraphNode &); // Do not implement
public:
+ typedef std::vector<CallRecord> CalledFunctionsVector;
+
//===---------------------------------------------------------------------
// Accessor methods...
//
Modified: llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp?rev=62384&r1=62383&r2=62384&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp Fri Jan 16 18:09:08 2009
@@ -158,8 +158,7 @@
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();
More information about the llvm-commits
mailing list