aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/MemoryDependenceAnalysis.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-07-10 17:08:11 +0000
committerOwen Anderson <resistor@mac.com>2007-07-10 17:08:11 +0000
commit6b278fc7860c1e0e5cf72340e43f78a87159be4c (patch)
tree9cc680c8511cdfc0c693333cc7652ff7dd2a4f1f /include/llvm/Analysis/MemoryDependenceAnalysis.h
parent02e25b70aa04d994db7a408518f8ae50a8f5582a (diff)
downloadexternal_llvm-6b278fc7860c1e0e5cf72340e43f78a87159be4c.zip
external_llvm-6b278fc7860c1e0e5cf72340e43f78a87159be4c.tar.gz
external_llvm-6b278fc7860c1e0e5cf72340e43f78a87159be4c.tar.bz2
Fix a bunch of things from Chris' feedback
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38493 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/MemoryDependenceAnalysis.h')
-rw-r--r--include/llvm/Analysis/MemoryDependenceAnalysis.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h
index 99d9130..572d241 100644
--- a/include/llvm/Analysis/MemoryDependenceAnalysis.h
+++ b/include/llvm/Analysis/MemoryDependenceAnalysis.h
@@ -28,7 +28,7 @@ class Function;
class FunctionPass;
class Instruction;
-class VISIBILITY_HIDDEN MemoryDependenceAnalysis : public FunctionPass {
+class MemoryDependenceAnalysis : public FunctionPass {
private:
DenseMap<Instruction*, std::pair<Instruction*, bool> > depGraphLocal;
@@ -44,10 +44,12 @@ class VISIBILITY_HIDDEN MemoryDependenceAnalysis : public FunctionPass {
/// Pass Implementation stuff. This doesn't do any analysis.
///
- bool runOnFunction(Function &) {
+ bool runOnFunction(Function &) {return false; }
+
+ /// Clean up memory in between runs
+ void releaseMemory() {
depGraphLocal.clear();
reverseDep.clear();
- return false;
}
/// getAnalysisUsage - Does not modify anything. It uses Value Numbering