mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-21 19:20:50 +00:00
Delete FunctionPass::runOnModule, which is unused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110842 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b68f274b6d
commit
73e8800229
@ -295,12 +295,6 @@ public:
|
|||||||
///
|
///
|
||||||
virtual bool doFinalization(Module &);
|
virtual bool doFinalization(Module &);
|
||||||
|
|
||||||
/// runOnModule - On a module, we run this pass by initializing,
|
|
||||||
/// ronOnFunction'ing once for every function in the module, then by
|
|
||||||
/// finalizing.
|
|
||||||
///
|
|
||||||
virtual bool runOnModule(Module &M);
|
|
||||||
|
|
||||||
/// run - On a function, we simply initialize, run the function, then
|
/// run - On a function, we simply initialize, run the function, then
|
||||||
/// finalize.
|
/// finalize.
|
||||||
///
|
///
|
||||||
|
@ -141,19 +141,6 @@ Pass *FunctionPass::createPrinterPass(raw_ostream &O,
|
|||||||
return createPrintFunctionPass(Banner, &O);
|
return createPrintFunctionPass(Banner, &O);
|
||||||
}
|
}
|
||||||
|
|
||||||
// run - On a module, we run this pass by initializing, runOnFunction'ing once
|
|
||||||
// for every function in the module, then by finalizing.
|
|
||||||
//
|
|
||||||
bool FunctionPass::runOnModule(Module &M) {
|
|
||||||
bool Changed = doInitialization(M);
|
|
||||||
|
|
||||||
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
|
|
||||||
if (!I->isDeclaration()) // Passes are not run on external functions!
|
|
||||||
Changed |= runOnFunction(*I);
|
|
||||||
|
|
||||||
return Changed | doFinalization(M);
|
|
||||||
}
|
|
||||||
|
|
||||||
// run - On a function, we simply initialize, run the function, then finalize.
|
// run - On a function, we simply initialize, run the function, then finalize.
|
||||||
//
|
//
|
||||||
bool FunctionPass::run(Function &F) {
|
bool FunctionPass::run(Function &F) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user