From 7c0c5670588e39222bb039755cdf9030ab17c64e Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Tue, 22 Nov 2005 22:14:23 +0000 Subject: [PATCH] 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 --- include/llvm/Transforms/Scalar.h | 1 + lib/Transforms/Scalar/Reg2Mem.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h index d7b778de53c..eb2f89682ab 100644 --- a/include/llvm/Transforms/Scalar.h +++ b/include/llvm/Transforms/Scalar.h @@ -168,6 +168,7 @@ FunctionPass *createPromoteMemoryToRegisterPass(); // In basically undoes the PromoteMemoryToRegister pass to // make cfg hacking easier. FunctionPass *createDemoteRegisterToMemoryPass(); +extern const PassInfo *DemoteRegisterToMemoryID; //===----------------------------------------------------------------------===// // diff --git a/lib/Transforms/Scalar/Reg2Mem.cpp b/lib/Transforms/Scalar/Reg2Mem.cpp index e964d2b466c..d34f718183e 100644 --- a/lib/Transforms/Scalar/Reg2Mem.cpp +++ b/lib/Transforms/Scalar/Reg2Mem.cpp @@ -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(); }