[llvm-commits] [llvm-gcc-4.2] r51389 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Gabor Greif
ggreif at gmail.com
Wed May 21 11:32:45 PDT 2008
Author: ggreif
Date: Wed May 21 13:32:45 2008
New Revision: 51389
URL: http://llvm.org/viewvc/llvm-project?rev=51389&view=rev
Log:
adapt to new API
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=51389&r1=51388&r2=51389&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Wed May 21 13:32:45 2008
@@ -1160,7 +1160,7 @@
return CI->getOperand(0);
// Do an end-run around the builder's folding logic.
// TODO: introduce a new builder class that does target specific folding.
- Value *Result = Builder.Insert(CastInst::create(Instruction::CastOps(opcode),
+ Value *Result = Builder.Insert(CastInst::Create(Instruction::CastOps(opcode),
V, Ty, V->getNameStart()));
// If this is a constantexpr, fold the instruction with
@@ -1247,7 +1247,7 @@
// alloc instructions before. It doesn't matter what this instruction is,
// it is dead. This allows us to insert allocas in order without having to
// scan for an insertion point. Use BitCast for int -> int
- AllocaInsertionPoint = CastInst::create(Instruction::BitCast,
+ AllocaInsertionPoint = CastInst::Create(Instruction::BitCast,
Constant::getNullValue(Type::Int32Ty), Type::Int32Ty, "alloca point");
// Insert it as the first instruction in the entry block.
Fn->begin()->getInstList().insert(Fn->begin()->begin(),
More information about the llvm-commits
mailing list