From: Chris Lattner Date: Wed, 20 Jan 2010 23:30:28 +0000 (+0000) Subject: simplify this code. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=05273448533565cf14d70e10f88919ee51755bc8;p=oota-llvm.git simplify this code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94048 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp b/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp index 94b0671c5b0..5650150218c 100644 --- a/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp +++ b/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp @@ -130,7 +130,7 @@ bool OptimalEdgeProfiler::runOnModule(Module &M) { // actual MST is returned but the edges _not_ in the MST. ProfileInfo::EdgeWeights ECs = - getAnalysisID(ProfileEstimatorPassID, *F).getEdgeWeights(F); + getAnalysis(*F).getEdgeWeights(F); std::vector EdgeVector(ECs.begin(), ECs.end()); MaximumSpanningTree MST (EdgeVector); std::stable_sort(MST.begin(),MST.end());