aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Transforms/MutateStructTypes.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/Transforms/MutateStructTypes.h b/include/llvm/Transforms/MutateStructTypes.h
index 1f3b250380..b2d4b30c27 100644
--- a/include/llvm/Transforms/MutateStructTypes.h
+++ b/include/llvm/Transforms/MutateStructTypes.h
@@ -18,6 +18,7 @@
#include <map>
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<const StructType*, vector<int> > &Transforms);
+ typedef map<const StructType*, vector<int> > 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<ConstPoolVal*> &Idx,
+ void AdjustIndices(const CompositeType *OldTy, vector<Value*> &Idx,
unsigned idx = 0);
};