diff options
author | Chris Lattner <sabre@nondot.org> | 2002-01-20 22:54:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-01-20 22:54:45 +0000 |
commit | 697954c15da58bd8b186dbafdedd8b06db770201 (patch) | |
tree | e119a71f09b5c2513c8c270161ae2a858c6f3b96 /lib/Transforms/TransformInternals.h | |
parent | 13c4659220bc78a0a3529f4d9e57546e898088e3 (diff) |
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
Diffstat (limited to 'lib/Transforms/TransformInternals.h')
-rw-r--r-- | lib/Transforms/TransformInternals.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/Transforms/TransformInternals.h b/lib/Transforms/TransformInternals.h index 200a4d7b98..7bc3df4fc3 100644 --- a/lib/Transforms/TransformInternals.h +++ b/lib/Transforms/TransformInternals.h @@ -24,7 +24,7 @@ // extern const TargetData TD; -static int getConstantValue(const ConstantInt *CPI) { +static inline int getConstantValue(const ConstantInt *CPI) { if (const ConstantSInt *CSI = dyn_cast<ConstantSInt>(CPI)) return CSI->getValue(); return cast<ConstantUInt>(CPI)->getValue(); @@ -65,25 +65,26 @@ void ReplaceInstWithInst(Instruction *From, Instruction *To); // If BI is nonnull, cast instructions are inserted as appropriate for the // arguments of the getelementptr. // -const Type *ConvertableToGEP(const Type *Ty, Value *V, vector<Value*> &Indices, +const Type *ConvertableToGEP(const Type *Ty, Value *V, + std::vector<Value*> &Indices, BasicBlock::iterator *BI = 0); // ------------- Expression Conversion --------------------- -typedef map<const Value*, const Type*> ValueTypeCache; +typedef std::map<const Value*, const Type*> ValueTypeCache; struct ValueMapCache { // Operands mapped - Contains an entry if the first value (the user) has had // the second value (the operand) mapped already. // - set<const User*> OperandsMapped; + std::set<const User*> OperandsMapped; // Expression Map - Contains an entry from the old value to the new value of // an expression that has been converted over. // - map<const Value *, Value *> ExprMap; - typedef map<const Value *, Value *> ExprMapTy; + std::map<const Value *, Value *> ExprMap; + typedef std::map<const Value *, Value *> ExprMapTy; }; @@ -137,7 +138,7 @@ public: // false if you want a leaf // const Type *getStructOffsetType(const Type *Ty, unsigned &Offset, - vector<Value*> &Offsets, + std::vector<Value*> &Offsets, bool StopEarly = true); #endif |