diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-25 06:17:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-25 06:17:51 +0000 |
commit | 0c0edf8afc35a42b15a24ebb5fa5f3fc674290ae (patch) | |
tree | ed8c32c0631b43d63d36b406b9c02baffd63f2b9 /lib/Transforms | |
parent | bcafccebdbe59cdb888d5a6dc844dea998e02f5b (diff) | |
download | external_llvm-0c0edf8afc35a42b15a24ebb5fa5f3fc674290ae.tar.gz external_llvm-0c0edf8afc35a42b15a24ebb5fa5f3fc674290ae.tar.bz2 external_llvm-0c0edf8afc35a42b15a24ebb5fa5f3fc674290ae.zip |
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/IPO/MutateStructTypes.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/IPO/OldPoolAllocate.cpp | 1 | ||||
-rw-r--r-- | lib/Transforms/Scalar/Reassociate.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/TransformInternals.cpp | 4 |
4 files changed, 5 insertions, 4 deletions
diff --git a/lib/Transforms/IPO/MutateStructTypes.cpp b/lib/Transforms/IPO/MutateStructTypes.cpp index 4058a3d03a..174f7a102b 100644 --- a/lib/Transforms/IPO/MutateStructTypes.cpp +++ b/lib/Transforms/IPO/MutateStructTypes.cpp @@ -108,7 +108,7 @@ const Type *MutateStructTypes::ConvertType(const Type *Ty) { // void MutateStructTypes::AdjustIndices(const CompositeType *OldTy, vector<Value*> &Idx, - unsigned i = 0) { + unsigned i) { assert(i < Idx.size() && "i out of range!"); const CompositeType *NewCT = cast<CompositeType>(ConvertType(OldTy)); if (NewCT == OldTy) return; // No adjustment unless type changes diff --git a/lib/Transforms/IPO/OldPoolAllocate.cpp b/lib/Transforms/IPO/OldPoolAllocate.cpp index e74c8b22c1..c22d53ef91 100644 --- a/lib/Transforms/IPO/OldPoolAllocate.cpp +++ b/lib/Transforms/IPO/OldPoolAllocate.cpp @@ -1759,5 +1759,6 @@ bool PoolAllocate::run(Module &M) { // Pass *createPoolAllocatePass() { assert(0 && "Pool allocator disabled!"); + return 0; //return new PoolAllocate(); } diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp index 05758039d9..a6ad88a9ea 100644 --- a/lib/Transforms/Scalar/Reassociate.cpp +++ b/lib/Transforms/Scalar/Reassociate.cpp @@ -33,7 +33,7 @@ static Statistic<> NumSwapped("reassociate\t- Number of insts with operands swap namespace { class Reassociate : public FunctionPass { - map<BasicBlock*, unsigned> RankMap; + std::map<BasicBlock*, unsigned> RankMap; public: bool runOnFunction(Function &F); diff --git a/lib/Transforms/TransformInternals.cpp b/lib/Transforms/TransformInternals.cpp index 05bc69438b..f8476231cf 100644 --- a/lib/Transforms/TransformInternals.cpp +++ b/lib/Transforms/TransformInternals.cpp @@ -52,7 +52,7 @@ static const Type *getStructOffsetStep(const StructType *STy, unsigned &Offset, // const Type *getStructOffsetType(const Type *Ty, unsigned &Offset, std::vector<Value*> &Indices, - bool StopEarly = true) { + bool StopEarly) { if (Offset == 0 && StopEarly && !Indices.empty()) return Ty; // Return the leaf type @@ -87,7 +87,7 @@ const Type *getStructOffsetType(const Type *Ty, unsigned &Offset, // const Type *ConvertableToGEP(const Type *Ty, Value *OffsetVal, std::vector<Value*> &Indices, - BasicBlock::iterator *BI = 0) { + BasicBlock::iterator *BI) { const CompositeType *CompTy = dyn_cast<CompositeType>(Ty); if (CompTy == 0) return 0; |