OSDN Git Service

simplify this code.
authorChris Lattner <sabre@nondot.org>
Wed, 20 Jan 2010 23:30:28 +0000 (23:30 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 20 Jan 2010 23:30:28 +0000 (23:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94048 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp

index 94b0671..5650150 100644 (file)
@@ -130,7 +130,7 @@ bool OptimalEdgeProfiler::runOnModule(Module &M) {
     // actual MST is returned but the edges _not_ in the MST.
 
     ProfileInfo::EdgeWeights ECs = 
-      getAnalysisID<ProfileInfo>(ProfileEstimatorPassID, *F).getEdgeWeights(F);
+      getAnalysis<ProfileInfo>(*F).getEdgeWeights(F);
     std::vector<ProfileInfo::EdgeWeight> EdgeVector(ECs.begin(), ECs.end());
     MaximumSpanningTree<BasicBlock> MST (EdgeVector);
     std::stable_sort(MST.begin(),MST.end());