diff options
author | Owen Anderson <resistor@mac.com> | 2007-07-10 17:08:11 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-07-10 17:08:11 +0000 |
commit | 6b278fc7860c1e0e5cf72340e43f78a87159be4c (patch) | |
tree | 9cc680c8511cdfc0c693333cc7652ff7dd2a4f1f /include/llvm/Analysis/MemoryDependenceAnalysis.h | |
parent | 02e25b70aa04d994db7a408518f8ae50a8f5582a (diff) | |
download | external_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.h | 8 |
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 |