[llvm-commits] [llvm] r48825 - in /llvm/branches/ggreif/use-diet/lib: AsmParser/llvmAsmParser.y Transforms/IPO/IndMemRemoval.cpp VMCore/AutoUpgrade.cpp VMCore/BasicBlock.cpp
Gabor Greif
ggreif at gmail.com
Wed Mar 26 08:17:23 PDT 2008
Author: ggreif
Date: Wed Mar 26 10:17:22 2008
New Revision: 48825
URL: http://llvm.org/viewvc/llvm-project?rev=48825&view=rev
Log:
BasicBlock.cpp: do not use 'new(N)'; minor whitespace changes
Modified:
llvm/branches/ggreif/use-diet/lib/AsmParser/llvmAsmParser.y
llvm/branches/ggreif/use-diet/lib/Transforms/IPO/IndMemRemoval.cpp
llvm/branches/ggreif/use-diet/lib/VMCore/AutoUpgrade.cpp
llvm/branches/ggreif/use-diet/lib/VMCore/BasicBlock.cpp
Modified: llvm/branches/ggreif/use-diet/lib/AsmParser/llvmAsmParser.y
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/AsmParser/llvmAsmParser.y?rev=48825&r1=48824&r2=48825&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/AsmParser/llvmAsmParser.y (original)
+++ llvm/branches/ggreif/use-diet/lib/AsmParser/llvmAsmParser.y Wed Mar 26 10:17:22 2008
@@ -3144,7 +3144,7 @@
(*$2)->getDescription()+ "'");
Value* tmpVal = getVal(*$2, $3);
CHECK_FOR_ERROR
- $$ = GetElementPtrInst::Create(tmpVal, $4->begin(), $4->end());
+ $$ = GetElementPtrInst::Create(tmpVal, $4->begin(), $4->end());
delete $2;
delete $4;
};
Modified: llvm/branches/ggreif/use-diet/lib/Transforms/IPO/IndMemRemoval.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/Transforms/IPO/IndMemRemoval.cpp?rev=48825&r1=48824&r2=48825&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/Transforms/IPO/IndMemRemoval.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/Transforms/IPO/IndMemRemoval.cpp Wed Mar 26 10:17:22 2008
@@ -52,8 +52,8 @@
if (Function* F = M.getFunction("free")) {
assert(F->isDeclaration() && "free not external?");
if (!F->use_empty()) {
- Function* FN = Function::Create(F->getFunctionType(),
- GlobalValue::LinkOnceLinkage,
+ Function* FN = Function::Create(F->getFunctionType(),
+ GlobalValue::LinkOnceLinkage,
"free_llvm_bounce", &M);
BasicBlock* bb = BasicBlock::Create("entry",FN);
Instruction* R = ReturnInst::Create(bb);
Modified: llvm/branches/ggreif/use-diet/lib/VMCore/AutoUpgrade.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/VMCore/AutoUpgrade.cpp?rev=48825&r1=48824&r2=48825&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/VMCore/AutoUpgrade.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/VMCore/AutoUpgrade.cpp Wed Mar 26 10:17:22 2008
@@ -199,10 +199,8 @@
Idxs.push_back(ConstantInt::get(Type::Int32Ty, 2));
Idxs.push_back(ConstantInt::get(Type::Int32Ty, 3));
Value *Mask = ConstantVector::get(Idxs);
- ShuffleVectorInst *SI = new ShuffleVectorInst(ZeroV,
- CI->getOperand(1),
- Mask, "upgraded",
- CI);
+ ShuffleVectorInst *SI = new ShuffleVectorInst(ZeroV, CI->getOperand(1),
+ Mask, "upgraded", CI);
// Handle any uses of the old CallInst.
if (!CI->use_empty())
@@ -262,7 +260,7 @@
SmallVector<Value*, 8> Operands(CI->op_begin()+1, CI->op_end());
// Construct a new CallInst
- CallInst *NewCI = CallInst::Create(NewFn, Operands.begin(), Operands.end(),
+ CallInst *NewCI = CallInst::Create(NewFn, Operands.begin(), Operands.end(),
"upgraded."+CI->getName(), CI);
NewCI->setTailCall(CI->isTailCall());
NewCI->setCallingConv(CI->getCallingConv());
Modified: llvm/branches/ggreif/use-diet/lib/VMCore/BasicBlock.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/VMCore/BasicBlock.cpp?rev=48825&r1=48824&r2=48825&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/VMCore/BasicBlock.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/VMCore/BasicBlock.cpp Wed Mar 26 10:17:22 2008
@@ -287,7 +287,7 @@
assert(I != InstList.end() &&
"Trying to get me to create degenerate basic block!");
- BasicBlock *New = new(0) BasicBlock(BBName, getParent(), getNext());
+ BasicBlock *New = new BasicBlock(BBName, getParent(), getNext());
// Move all of the specified instructions from the original basic block into
// the new basic block.
More information about the llvm-commits
mailing list