summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-23 16:18:14 +0000
committerChris Lattner <sabre@nondot.org>2003-04-23 16:18:14 +0000
commit1f45f4e4d89266675b883921d792fa543d093afc (patch)
tree581ea3cc1ffe61b6cfe32df436579ee8dc89cc9c /llvm/lib/Transforms
parentecb0bac0ecd37938b880665c1da3a1e87ed60236 (diff)
downloadbcm5719-llvm-1f45f4e4d89266675b883921d792fa543d093afc.tar.gz
bcm5719-llvm-1f45f4e4d89266675b883921d792fa543d093afc.zip
Minor cleanups
llvm-svn: 5863
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/LowerAllocations.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Scalar/LowerAllocations.cpp b/llvm/lib/Transforms/Scalar/LowerAllocations.cpp
index 8c6550003dd..0148134d03b 100644
--- a/llvm/lib/Transforms/Scalar/LowerAllocations.cpp
+++ b/llvm/lib/Transforms/Scalar/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);
OpenPOWER on IntegriCloud