summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-20 23:30:28 +0000
committerChris Lattner <sabre@nondot.org>2010-01-20 23:30:28 +0000
commit3c5bf713535ee1fdfb75b5a1067d8d9cfa344556 (patch)
tree6f686f5a93265ef03c08e602bceb72545c617825
parent177934e02151d58f5837ee31478e349de6ae2c6b (diff)
downloadbcm5719-llvm-3c5bf713535ee1fdfb75b5a1067d8d9cfa344556.tar.gz
bcm5719-llvm-3c5bf713535ee1fdfb75b5a1067d8d9cfa344556.zip
simplify this code.
llvm-svn: 94048
-rw-r--r--llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp b/llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp
index 94b0671c5b0..5650150218c 100644
--- a/llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp
+++ b/llvm/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<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());
OpenPOWER on IntegriCloud