diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-04 06:47:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-04 06:47:17 +0000 |
commit | 28a7aa0e64b5eccb57aaabdc5d731583443edaf7 (patch) | |
tree | 8d71f97a5944df45f876e657d2307b5e5e725867 /include | |
parent | 69a28d05656f3dbd5a689631821195bfddc75137 (diff) | |
download | llvm-28a7aa0e64b5eccb57aaabdc5d731583443edaf7.tar.gz llvm-28a7aa0e64b5eccb57aaabdc5d731583443edaf7.tar.bz2 llvm-28a7aa0e64b5eccb57aaabdc5d731583443edaf7.tar.xz |
Eliminate ModuleAnalyzer. It's old code that is not going to be used in the near future
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1679 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/ModuleAnalyzer.h | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/include/llvm/Analysis/ModuleAnalyzer.h b/include/llvm/Analysis/ModuleAnalyzer.h deleted file mode 100644 index 8493becc64..0000000000 --- a/include/llvm/Analysis/ModuleAnalyzer.h +++ /dev/null @@ -1,84 +0,0 @@ -//===-- llvm/Analysis/ModuleAnalyzer.h - Module analysis driver --*- C++ -*-==// -// -// This class provides a nice interface to traverse a module in a predictable -// way. This is used by the AssemblyWriter, BytecodeWriter, and SlotCalculator -// to do analysis of a module. -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_ANALYSIS_MODULEANALYZER_H -#define LLVM_ANALYSIS_MODULEANALYZER_H - -#include <set> - -class Type; -class Module; -class Method; -class BasicBlock; -class Instruction; -class MethodType; -class MethodArgument; - -class ModuleAnalyzer { - ModuleAnalyzer(const ModuleAnalyzer &); // do not impl - const ModuleAnalyzer &operator=(const ModuleAnalyzer &); // do not impl -public: - ModuleAnalyzer() {} - virtual ~ModuleAnalyzer() {} - -protected: - // processModule - Driver function to call all of my subclasses virtual - // methods. Commonly called by derived type's constructor. - // - bool processModule(const Module *M); - - // processType - This callback occurs when an derived type is discovered - // at the class level. This activity occurs when processing a constant pool. - // - virtual bool processType(const Type *Ty) { return false; } - - // processMethods - The default implementation of this method loops through - // all of the methods in the module and processModule's them. - // - virtual bool processMethods(const Module *M); - - // visitMethod - This member is called after the constant pool has been - // processed. The default implementation of this is a noop. - // - virtual bool visitMethod(const Method *M) { return false; } - - //===--------------------------------------------------------------------===// - // Stages of processing Method level information - // - - // processMethod - Process all aspects of a method. - // - virtual bool processMethod(const Method *M); - - // processMethodArgument - This member is called for every argument that - // is passed into the method. - // - virtual bool processMethodArgument(const MethodArgument *MA) { return false; } - - // processBasicBlock - This member is called for each basic block in a methd. - // - virtual bool processBasicBlock(const BasicBlock *BB); - - //===--------------------------------------------------------------------===// - // Stages of processing BasicBlock level information - // - - // preProcessInstruction - This member is called for each Instruction in a - // method before processInstruction. - // - virtual bool preProcessInstruction(const Instruction *I); - - // processInstruction - This member is called for each Instruction in a method - // - virtual bool processInstruction(const Instruction *I) { return false; } - -private: - bool handleType(std::set<const Type *> &TypeSet, const Type *T); -}; - -#endif |