[llvm-commits] CVS: llvm/include/llvm/PassManager.h
Brian Gaeke
gaeke at niobe.cs.uiuc.edu
Thu Aug 14 01:09:06 PDT 2003
Changes in directory llvm/include/llvm:
PassManager.h updated: 1.5 -> 1.6
---
Log message:
Add new method to FunctionPassManager to add ImmutablePasses.
---
Diffs of the changes:
Index: llvm/include/llvm/PassManager.h
diff -u llvm/include/llvm/PassManager.h:1.5 llvm/include/llvm/PassManager.h:1.6
--- llvm/include/llvm/PassManager.h:1.5 Tue Aug 12 12:22:39 2003
+++ llvm/include/llvm/PassManager.h Thu Aug 14 01:07:57 2003
@@ -34,6 +34,7 @@
};
class FunctionPass;
+class ImmutablePass;
class Function;
class FunctionPassManager {
@@ -49,6 +50,11 @@
/// passes MUST be allocated with 'new'.
///
void add(FunctionPass *P);
+
+ /// add - ImmutablePasses are not FunctionPasses, so we have a
+ /// special hack to get them into a FunctionPassManager.
+ ///
+ void add(ImmutablePass *IP);
/// run - Execute all of the passes scheduled for execution. Keep
/// track of whether any of the passes modifies the function, and if
More information about the llvm-commits
mailing list