diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-15 17:47:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-15 17:47:13 +0000 |
commit | 2db4b72017a41017a5a7d412fa32b4fbaa5d210c (patch) | |
tree | 7bfd4a083874761e258fbf1de2173c92b600942a | |
parent | 25c12299307a640ff847ae4dfa58257d07e47230 (diff) |
ConcretePass should not be a templated class!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@838 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Transforms/ChangeAllocations.h | 2 | ||||
-rw-r--r-- | include/llvm/Transforms/Instrumentation/TraceValues.h | 2 | ||||
-rw-r--r-- | include/llvm/Transforms/Pass.h | 8 | ||||
-rw-r--r-- | include/llvm/Transforms/PrintModulePass.h | 2 | ||||
-rw-r--r-- | tools/llc/llc.cpp | 4 |
5 files changed, 8 insertions, 10 deletions
diff --git a/include/llvm/Transforms/ChangeAllocations.h b/include/llvm/Transforms/ChangeAllocations.h index 08339cd64e..4c36b2d4c0 100644 --- a/include/llvm/Transforms/ChangeAllocations.h +++ b/include/llvm/Transforms/ChangeAllocations.h @@ -13,7 +13,7 @@ #include "llvm/Transforms/Pass.h" class TargetData; -class LowerAllocations : public ConcretePass<LowerAllocations> { +class LowerAllocations : public ConcretePass { Method *MallocMeth; // Methods in the module we are processing Method *FreeMeth; // Initialized by doPassInitializationVirt diff --git a/include/llvm/Transforms/Instrumentation/TraceValues.h b/include/llvm/Transforms/Instrumentation/TraceValues.h index 8f4ee1d981..cf27a344ce 100644 --- a/include/llvm/Transforms/Instrumentation/TraceValues.h +++ b/include/llvm/Transforms/Instrumentation/TraceValues.h @@ -70,7 +70,7 @@ void InsertCodeToTraceValues (Method* method, bool traceMethodExits); -class InsertTraceCode : public ConcretePass<InsertTraceCode> { +class InsertTraceCode : public ConcretePass { bool TraceBasicBlockExits, TraceMethodExits; public: InsertTraceCode(bool traceBasicBlockExits, bool traceMethodExits) diff --git a/include/llvm/Transforms/Pass.h b/include/llvm/Transforms/Pass.h index c6ba84ec5d..f7cc17cca8 100644 --- a/include/llvm/Transforms/Pass.h +++ b/include/llvm/Transforms/Pass.h @@ -113,15 +113,13 @@ struct Pass { //===----------------------------------------------------------------------===// -// ConcretePass<t> class - This is used by implementations of passes to fill in -// boiler plate code. SubClass should be a concrete class that is derived from -// ConcretePass. +// ConcretePass class - This is used by implementations of passes to fill in +// boiler plate code. // // Deriving from this class is good because if new methods are added in the // future, code for your pass won't have to change to stub out the unused // functionality. // -template<class SubClass> struct ConcretePass : public Pass { // doPassInitializationVirt - Default to success. @@ -143,7 +141,7 @@ struct ConcretePass : public Pass { // SubClass should be a concrete class that is derived from StatelessPass. // template<class SubClass> -struct StatelessPass : public ConcretePass<SubClass> { +struct StatelessPass : public ConcretePass { //===--------------------------------------------------------------------===// // The externally useful entry points - These are specialized to avoid the diff --git a/include/llvm/Transforms/PrintModulePass.h b/include/llvm/Transforms/PrintModulePass.h index 90cd369f7b..0e2cee1599 100644 --- a/include/llvm/Transforms/PrintModulePass.h +++ b/include/llvm/Transforms/PrintModulePass.h @@ -11,7 +11,7 @@ #include "llvm/Transforms/Pass.h" #include "llvm/Assembly/Writer.h" -class PrintModulePass : public ConcretePass<PrintModulePass> { +class PrintModulePass : public ConcretePass { string Banner; // String to print before each method ostream *Out; // ostream to print on bool DeleteStream; // Delete the ostream in our dtor? diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 30777b02df..04ae468686 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -52,7 +52,7 @@ static inline string GetFileNameRoot(const string &InputFilename) { // Native code generation for a specified target. //===---------------------------------------------------------------------===// -class GenerateCodeForTarget : public ConcretePass<GenerateCodeForTarget> { +class GenerateCodeForTarget : public ConcretePass { TargetMachine &Target; public: inline GenerateCodeForTarget(TargetMachine &T) : Target(T) {} @@ -77,7 +77,7 @@ public: // Write assembly code to specified output stream //===---------------------------------------------------------------------===// -class EmitAssembly : public ConcretePass<EmitAssembly> { +class EmitAssembly : public ConcretePass { const TargetMachine &Target; // Target to compile for ostream *Out; // Stream to print on bool DeleteStream; // Delete stream in dtor? |