Reg2Mem is something a pass may depend on, so allow that

llvm-svn: 24488
This commit is contained in:
Andrew Lenharth 2005-11-22 22:14:23 +00:00
parent 71b09bbb07
commit 061029dee2
2 changed files with 2 additions and 0 deletions

View File

@ -168,6 +168,7 @@ FunctionPass *createPromoteMemoryToRegisterPass();
// In basically undoes the PromoteMemoryToRegister pass to
// make cfg hacking easier.
FunctionPass *createDemoteRegisterToMemoryPass();
extern const PassInfo *DemoteRegisterToMemoryID;
//===----------------------------------------------------------------------===//
//

View File

@ -80,6 +80,7 @@ namespace {
// createDemoteRegisterToMemory - Provide an entry point to create this pass.
//
const PassInfo *llvm::DemoteRegisterToMemoryID = X.getPassInfo();
FunctionPass *llvm::createDemoteRegisterToMemoryPass() {
return new RegToMem();
}