diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-27 16:14:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-27 16:14:51 +0000 |
commit | 1fca5ff62bb2ecb5bfc8974f4dbfc56e9d3ca721 (patch) | |
tree | 84ba84e29d790774dd87ad9efc8acb702dafc842 /include/llvm/Pass.h | |
parent | 3acd9181df5d8f76f75a384266e2a78b9a6c4f45 (diff) | |
download | external_llvm-1fca5ff62bb2ecb5bfc8974f4dbfc56e9d3ca721.zip external_llvm-1fca5ff62bb2ecb5bfc8974f4dbfc56e9d3ca721.tar.gz external_llvm-1fca5ff62bb2ecb5bfc8974f4dbfc56e9d3ca721.tar.bz2 |
Convert 'struct' to 'class' in various places to adhere to the coding standards
and work better with VC++. Patch contributed by Morten Ofstad!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17281 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Pass.h')
-rw-r--r-- | include/llvm/Pass.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index 77f630c..ff710d3 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -38,7 +38,7 @@ namespace llvm { class Value; -struct BasicBlock; +class BasicBlock; class Function; class Module; class AnalysisUsage; @@ -56,7 +56,7 @@ typedef const PassInfo* AnalysisID; /// constrained passes described below. /// class Pass { - friend class AnalysisResolver; + friend struct AnalysisResolver; AnalysisResolver *Resolver; // AnalysisResolver this pass is owned by... const PassInfo *PassInfoCache; @@ -211,8 +211,8 @@ inline std::ostream &operator<<(std::ostream &OS, const Pass &P) { /// interprocedural optimizations and analyses. ModulePass's may do anything /// they want to the program. /// -struct ModulePass : public Pass { - +class ModulePass : public Pass { +public: /// runOnModule - Virtual method overriden by subclasses to process the module /// being operated on. virtual bool runOnModule(Module &M) = 0; @@ -228,7 +228,8 @@ struct ModulePass : public Pass { /// not need to be run. This is useful for things like target information and /// "basic" versions of AnalysisGroups. /// -struct ImmutablePass : public ModulePass { +class ImmutablePass : public ModulePass { +public: /// initializePass - This method may be overriden by immutable passes to allow /// them to perform various initialization actions they require. This is /// primarily because an ImmutablePass can "require" another ImmutablePass, @@ -255,7 +256,8 @@ private: /// 2. Optimizing a function does not cause the addition or removal of any /// functions in the module /// -struct FunctionPass : public ModulePass { +class FunctionPass : public ModulePass { +public: /// doInitialization - Virtual method overridden by subclasses to do /// any necessary per-module initialization. /// |