mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Changes to build successfully with GCC 3.02
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1503 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -82,7 +82,7 @@ void ReplaceInstWithInst(Instruction *From, Instruction *To) {
|
||||
// false if you want a leaf
|
||||
//
|
||||
const Type *getStructOffsetType(const Type *Ty, unsigned &Offset,
|
||||
vector<Value*> &Offsets,
|
||||
std::vector<Value*> &Offsets,
|
||||
bool StopEarly = true) {
|
||||
if (Offset == 0 && StopEarly && !Offsets.empty())
|
||||
return Ty; // Return the leaf type
|
||||
@ -130,7 +130,7 @@ const Type *getStructOffsetType(const Type *Ty, unsigned &Offset,
|
||||
// instruction. The type returned is the root type that the GEP would point to
|
||||
//
|
||||
const Type *ConvertableToGEP(const Type *Ty, Value *OffsetVal,
|
||||
vector<Value*> &Indices,
|
||||
std::vector<Value*> &Indices,
|
||||
BasicBlock::iterator *BI = 0) {
|
||||
const CompositeType *CompTy = dyn_cast<CompositeType>(Ty);
|
||||
if (CompTy == 0) return 0;
|
||||
|
Reference in New Issue
Block a user