From: Chris Lattner Date: Mon, 26 Nov 2001 16:49:12 +0000 (+0000) Subject: Allow array indexing X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d43d9007a3cb93ff0e4b7ff72a14dd4fa5007ed3;p=oota-llvm.git Allow array indexing git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1333 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Transforms/MutateStructTypes.h b/include/llvm/Transforms/MutateStructTypes.h index 1f3b2503803..b2d4b30c272 100644 --- a/include/llvm/Transforms/MutateStructTypes.h +++ b/include/llvm/Transforms/MutateStructTypes.h @@ -18,6 +18,7 @@ #include class StructType; +class CompositeType; class GlobalValue; class MutateStructTypes : public Pass { @@ -48,7 +49,9 @@ public: // the destination structure the field should end up in. A negative value // indicates that the field should be deleted entirely. // - MutateStructTypes(const map > &Transforms); + typedef map > TransformsType; + + MutateStructTypes(const TransformsType &Transforms); // doPassInitialization - This loops over global constants defined in the @@ -80,7 +83,7 @@ private: // AdjustIndices - Convert the indexes specifed by Idx to the new changed form // using the specified OldTy as the base type being indexed into. // - void AdjustIndices(const StructType *OldTy, vector &Idx, + void AdjustIndices(const CompositeType *OldTy, vector &Idx, unsigned idx = 0); };