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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24488 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Lenharth 2005-11-22 22:14:23 +00:00
parent 7045f6c56e
commit 7c0c567058
2 changed files with 2 additions and 0 deletions

View File

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

View File

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