From 7f74a56e2436c40b18a672ad7d58727cd6832329 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 20 Jan 2002 22:54:45 +0000 Subject: Changes to build successfully with GCC 3.02 llvm-svn: 1503 --- llvm/lib/Transforms/TransformInternals.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'llvm/lib/Transforms/TransformInternals.h') diff --git a/llvm/lib/Transforms/TransformInternals.h b/llvm/lib/Transforms/TransformInternals.h index 200a4d7b98a..7bc3df4fc37 100644 --- a/llvm/lib/Transforms/TransformInternals.h +++ b/llvm/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(CPI)) return CSI->getValue(); return cast(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 &Indices, +const Type *ConvertableToGEP(const Type *Ty, Value *V, + std::vector &Indices, BasicBlock::iterator *BI = 0); // ------------- Expression Conversion --------------------- -typedef map ValueTypeCache; +typedef std::map ValueTypeCache; struct ValueMapCache { // Operands mapped - Contains an entry if the first value (the user) has had // the second value (the operand) mapped already. // - set OperandsMapped; + std::set OperandsMapped; // Expression Map - Contains an entry from the old value to the new value of // an expression that has been converted over. // - map ExprMap; - typedef map ExprMapTy; + std::map ExprMap; + typedef std::map ExprMapTy; }; @@ -137,7 +138,7 @@ public: // false if you want a leaf // const Type *getStructOffsetType(const Type *Ty, unsigned &Offset, - vector &Offsets, + std::vector &Offsets, bool StopEarly = true); #endif -- cgit v1.2.3