diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-23 16:18:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-23 16:18:14 +0000 |
commit | 350c0a8216c5207000467cb3729ae77d5d273f20 (patch) | |
tree | 3df20a17d0d637b565b9f33145bdb63ed7a8eb6c /lib/Transforms/Utils/LowerAllocations.cpp | |
parent | 011ce8d2e401855877803fb6d972a6f6c22242a5 (diff) |
Minor cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5863 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LowerAllocations.cpp')
-rw-r--r-- | lib/Transforms/Utils/LowerAllocations.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Transforms/Utils/LowerAllocations.cpp b/lib/Transforms/Utils/LowerAllocations.cpp index 8c6550003d..0148134d03 100644 --- a/lib/Transforms/Utils/LowerAllocations.cpp +++ b/lib/Transforms/Utils/LowerAllocations.cpp @@ -15,8 +15,6 @@ #include "llvm/Target/TargetData.h" #include "Support/Statistic.h" -using std::vector; - namespace { Statistic<> NumLowered("lowerallocs", "Number of allocations lowered"); @@ -62,10 +60,11 @@ Pass *createLowerAllocationsPass() { bool LowerAllocations::doInitialization(Module &M) { const FunctionType *MallocType = FunctionType::get(PointerType::get(Type::SByteTy), - vector<const Type*>(1, Type::UIntTy), false); + std::vector<const Type*>(1, Type::UIntTy), false); const FunctionType *FreeType = FunctionType::get(Type::VoidTy, - vector<const Type*>(1, PointerType::get(Type::SByteTy)), + std::vector<const Type*>(1, + PointerType::get(Type::SByteTy)), false); MallocFunc = M.getOrInsertFunction("malloc", MallocType); @@ -105,7 +104,7 @@ bool LowerAllocations::runOnBasicBlock(BasicBlock &BB) { // Create the call to Malloc... CallInst *MCall = new CallInst(MallocFunc, - vector<Value*>(1, MallocArg), "", I); + std::vector<Value*>(1, MallocArg), "", I); // Create a cast instruction to convert to the right type... CastInst *MCast = new CastInst(MCall, MI->getType(), "", I); @@ -121,7 +120,8 @@ bool LowerAllocations::runOnBasicBlock(BasicBlock &BB) { PointerType::get(Type::UByteTy), "", I); // Insert a call to the free function... - CallInst *FCall = new CallInst(FreeFunc, vector<Value*>(1, MCast), "", I); + CallInst *FCall = new CallInst(FreeFunc, std::vector<Value*>(1, MCast), + "", I); // Delete the old free instruction I = --BBIL.erase(I); |