Mem2Reg does not need TargetData.
authorDevang Patel <dpatel@apple.com>
Wed, 25 Apr 2007 18:41:11 +0000 (18:41 +0000)
committerDevang Patel <dpatel@apple.com>
Wed, 25 Apr 2007 18:41:11 +0000 (18:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36446 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/Utils/PromoteMemToReg.h

index e2ad4cd847bc5e152abcf83fb70cc8b7bc74dc0a..376ea156b94537fc97abe5d1683b4600606b686f 100644 (file)
@@ -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<AllocaInst*> &Allocas,
                      ETForest &ET, DominanceFrontier &DF,
-                     const TargetData &TD, AliasSetTracker *AST = 0);
+                     AliasSetTracker *AST = 0);
 
 } // End llvm namespace