From: Devang Patel Date: Wed, 25 Apr 2007 18:41:11 +0000 (+0000) Subject: Mem2Reg does not need TargetData. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c20a64d2bb8c60599f8f4fce755323273f0c84cc;p=oota-llvm.git Mem2Reg does not need TargetData. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36446 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Transforms/Utils/PromoteMemToReg.h b/include/llvm/Transforms/Utils/PromoteMemToReg.h index e2ad4cd847b..376ea156b94 100644 --- a/include/llvm/Transforms/Utils/PromoteMemToReg.h +++ b/include/llvm/Transforms/Utils/PromoteMemToReg.h @@ -22,7 +22,6 @@ namespace llvm { class AllocaInst; class ETForest; class DominanceFrontier; -class TargetData; class AliasSetTracker; /// isAllocaPromotable - Return true if this alloca is legal for promotion. @@ -40,7 +39,7 @@ bool isAllocaPromotable(const AllocaInst *AI); /// void PromoteMemToReg(const std::vector &Allocas, ETForest &ET, DominanceFrontier &DF, - const TargetData &TD, AliasSetTracker *AST = 0); + AliasSetTracker *AST = 0); } // End llvm namespace