FunctionPassManager does not support runOnModule().
llvm-svn: 32519
This commit is contained in:
parent
476a58a917
commit
08bed59d59
|
@ -131,11 +131,6 @@ public:
|
|||
/// This implies that all passes MUST be allocated with 'new'.
|
||||
void add(Pass *P);
|
||||
|
||||
/// Execute all of the passes scheduled for execution. Keep
|
||||
/// track of whether any of the passes modifies the function, and if
|
||||
/// so, return true.
|
||||
bool runOnModule(Module &M);
|
||||
|
||||
/// run - Execute all of the passes scheduled for execution. Keep
|
||||
/// track of whether any of the passes modifies the function, and if
|
||||
/// so, return true.
|
||||
|
|
|
@ -945,13 +945,6 @@ void FunctionPassManager_New::add(Pass *P) {
|
|||
FPM->add(P);
|
||||
}
|
||||
|
||||
/// Execute all of the passes scheduled for execution. Keep
|
||||
/// track of whether any of the passes modifies the function, and if
|
||||
/// so, return true.
|
||||
bool FunctionPassManager_New::runOnModule(Module &M) {
|
||||
return FPM->runOnModule(M);
|
||||
}
|
||||
|
||||
/// run - Execute all of the passes scheduled for execution. Keep
|
||||
/// track of whether any of the passes modifies the function, and if
|
||||
/// so, return true.
|
||||
|
|
Loading…
Reference in New Issue