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 | 7f74a56e2436c40b18a672ad7d58727cd6832329 (patch) | |
| tree | 6a4683a53f7eb71b8a3425008ef21268c2b2c8fd /llvm/lib/Transforms/TransformInternals.h | |
| parent | 850d4f6af1a0e9de3fa6e10afb04e3738fcc5d67 (diff) | |
| download | bcm5719-llvm-7f74a56e2436c40b18a672ad7d58727cd6832329.tar.gz bcm5719-llvm-7f74a56e2436c40b18a672ad7d58727cd6832329.zip | |
Changes to build successfully with GCC 3.02
llvm-svn: 1503
Diffstat (limited to 'llvm/lib/Transforms/TransformInternals.h')
| -rw-r--r-- | llvm/lib/Transforms/TransformInternals.h | 15 |
1 files changed, 8 insertions, 7 deletions
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<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 |

