1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Inherit BasicBlockPass directly from Pass.

llvm-svn: 33511
This commit is contained in:
Devang Patel 2007-01-25 23:23:25 +00:00
parent a229bc12be
commit a9eae6951d
4 changed files with 6 additions and 6 deletions

View File

@ -291,7 +291,7 @@ public:
/// other basic block in the function.
/// 3. Optimizations conform to all of the constraints of FunctionPasses.
///
class BasicBlockPass : public FunctionPass {
class BasicBlockPass : public Pass {
public:
/// doInitialization - Virtual method overridden by subclasses to do
/// any necessary per-module initialization.

View File

@ -19,8 +19,8 @@
namespace llvm {
class ModulePass;
class FunctionPass;
class Pass;
class GetElementPtrInst;
class PassInfo;
class TerminatorInst;
@ -52,7 +52,7 @@ FunctionPass *createSCCPPass();
// without modifying the CFG of the function. It is a BasicBlockPass, so it
// runs efficiently when queued next to other BasicBlockPass's.
//
FunctionPass *createDeadInstEliminationPass();
Pass *createDeadInstEliminationPass();
//===----------------------------------------------------------------------===//
//
@ -249,7 +249,7 @@ extern const PassInfo *LowerSelectID;
//
// AU.addRequiredID(LowerAllocationsID);
//
FunctionPass *createLowerAllocationsPass(bool LowerMallocArgToInteger = false);
Pass *createLowerAllocationsPass(bool LowerMallocArgToInteger = false);
extern const PassInfo *LowerAllocationsID;
//===----------------------------------------------------------------------===//

View File

@ -53,7 +53,7 @@ namespace {
RegisterPass<DeadInstElimination> X("die", "Dead Instruction Elimination");
}
FunctionPass *llvm::createDeadInstEliminationPass() {
Pass *llvm::createDeadInstEliminationPass() {
return new DeadInstElimination();
}

View File

@ -73,7 +73,7 @@ namespace {
// Publically exposed interface to pass...
const PassInfo *llvm::LowerAllocationsID = X.getPassInfo();
// createLowerAllocationsPass - Interface to this file...
FunctionPass *llvm::createLowerAllocationsPass(bool LowerMallocArgToInteger) {
Pass *llvm::createLowerAllocationsPass(bool LowerMallocArgToInteger) {
return new LowerAllocations(LowerMallocArgToInteger);
}