diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils')
| -rw-r--r-- | llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp | 3 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp | 2 | 
2 files changed, 3 insertions, 2 deletions
| diff --git a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index 8a81ac71317..378e9799a8c 100644 --- a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp @@ -47,8 +47,6 @@ namespace {      map<BasicBlock*,vector<PHINode*> > NewPhiNodes; // the PhiNodes we're adding    public: -    const char *getPassName() const { return "Promote Memory to Register"; } -      // runOnFunction - To run this pass, first we calculate the alloca      // instructions that are safe for promotion, then we promote each one.      // @@ -68,6 +66,7 @@ namespace {      void FindSafeAllocas(Function &F);    }; +  RegisterPass<PromotePass> X("mem2reg", "Promote Memory to Register");  }  // end of anonymous namespace diff --git a/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp b/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp index 9a65fcecf44..ef7d63e7cdb 100644 --- a/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp +++ b/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp @@ -17,6 +17,8 @@ using std::vector;  AnalysisID UnifyFunctionExitNodes::ID(AnalysisID::create<UnifyFunctionExitNodes>()); +static RegisterPass<UnifyFunctionExitNodes> +X("mergereturn", "Unify function exit nodes");  // UnifyAllExitNodes - Unify all exit nodes of the CFG by creating a new  // BasicBlock, and converting all returns to unconditional branches to this | 

