mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-09 11:32:48 +00:00
Allow array indexing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1333 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8927973283
commit
d43d9007a3
@ -18,6 +18,7 @@
|
|||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
class StructType;
|
class StructType;
|
||||||
|
class CompositeType;
|
||||||
class GlobalValue;
|
class GlobalValue;
|
||||||
|
|
||||||
class MutateStructTypes : public Pass {
|
class MutateStructTypes : public Pass {
|
||||||
@ -48,7 +49,9 @@ public:
|
|||||||
// the destination structure the field should end up in. A negative value
|
// the destination structure the field should end up in. A negative value
|
||||||
// indicates that the field should be deleted entirely.
|
// 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
|
// 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
|
// AdjustIndices - Convert the indexes specifed by Idx to the new changed form
|
||||||
// using the specified OldTy as the base type being indexed into.
|
// 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);
|
unsigned idx = 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user