summaryrefslogtreecommitdiff
path: root/lib/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-04 17:49:01 +0000
committerChris Lattner <sabre@nondot.org>2002-02-04 17:49:01 +0000
commitbcbce1786436b42a8ee0764fe8a51134f4e6e79e (patch)
tree6426d3e5f77100cfa26f5330457473b1f6f1c666 /lib/Analysis
parent14ab1ce0209343b0e2c424ab8ba32261d4474349 (diff)
downloadllvm-bcbce1786436b42a8ee0764fe8a51134f4e6e79e.tar.gz
llvm-bcbce1786436b42a8ee0764fe8a51134f4e6e79e.tar.bz2
llvm-bcbce1786436b42a8ee0764fe8a51134f4e6e79e.tar.xz
Remove Obsolete LoopDepthCalculator. All users should use LoopInfo directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1697 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/LoopDepth.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/lib/Analysis/LoopDepth.cpp b/lib/Analysis/LoopDepth.cpp
deleted file mode 100644
index 03b81b9312..0000000000
--- a/lib/Analysis/LoopDepth.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-//===- LoopDepth.cpp - Loop Depth Calculation --------------------*- C++ -*--=//
-//
-// This file provides a simple class to calculate the loop depth of a
-// BasicBlock.
-//
-//===----------------------------------------------------------------------===//
-
-#include "llvm/Analysis/LoopDepth.h"
-#include "llvm/Analysis/LoopInfo.h"
-#include "llvm/Method.h"
-#include <algorithm>
-
-AnalysisID cfg::LoopDepthCalculator::ID(AnalysisID::create<cfg::LoopDepthCalculator>());
-
-bool cfg::LoopDepthCalculator::runOnMethod(Method *M) {
- calculate(M, getAnalysis<LoopInfo>());
- return false;
-}
-
-void cfg::LoopDepthCalculator::calculate(Method *M, LoopInfo &Loops) {
- for (Method::iterator I = M->begin(), E = M->end(); I != E; ++I)
- LoopDepth[*I] = Loops.getLoopDepth(*I);
-}
-
-// getAnalysisUsageInfo - Provide loop depth, require loop info
-//
-void cfg::LoopDepthCalculator::getAnalysisUsageInfo(Pass::AnalysisSet &Requires,
- Pass::AnalysisSet &Destroyed,
- Pass::AnalysisSet &Provided) {
- Provided.push_back(ID);
- Requires.push_back(LoopInfo::ID);
-}
-