[llvm-commits] [dragonegg] r133366 - in /dragonegg/trunk/src: Convert.cpp Types.cpp
Chris Lattner
sabre at nondot.org
Sat Jun 18 15:49:17 PDT 2011
Author: lattner
Date: Sat Jun 18 17:49:16 2011
New Revision: 133366
URL: http://llvm.org/viewvc/llvm-project?rev=133366&view=rev
Log:
update for api change (hopefully)
Modified:
dragonegg/trunk/src/Convert.cpp
dragonegg/trunk/src/Types.cpp
Modified: dragonegg/trunk/src/Convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Convert.cpp?rev=133366&r1=133365&r2=133366&view=diff
==============================================================================
--- dragonegg/trunk/src/Convert.cpp (original)
+++ dragonegg/trunk/src/Convert.cpp Sat Jun 18 17:49:16 2011
@@ -5556,7 +5556,7 @@
Value *TreeToLLVM::CreateComplex(Value *Real, Value *Imag) {
assert(Real->getType() == Imag->getType() && "Component type mismatch!");
const Type *EltTy = Real->getType();
- Value *Result = UndefValue::get(StructType::get(Context, EltTy, EltTy, NULL));
+ Value *Result = UndefValue::get(StructType::get(EltTy, EltTy, NULL));
Result = Builder.CreateInsertValue(Result, Real, 0);
Result = Builder.CreateInsertValue(Result, Imag, 1);
return Result;
Modified: dragonegg/trunk/src/Types.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Types.cpp?rev=133366&r1=133365&r2=133366&view=diff
==============================================================================
--- dragonegg/trunk/src/Types.cpp (original)
+++ dragonegg/trunk/src/Types.cpp Sat Jun 18 17:49:16 2011
@@ -511,7 +511,7 @@
case COMPLEX_TYPE: {
const Type *EltTy = getRegType(TREE_TYPE(type));
- return StructType::get(Context, EltTy, EltTy, NULL);
+ return StructType::get(EltTy, EltTy, NULL);
}
case OFFSET_TYPE:
@@ -615,7 +615,7 @@
if ((Ty = GET_TYPE_LLVM(type))) return Ty;
Ty = ConvertType(TREE_TYPE(type));
assert(!Ty->isAbstract() && "should use TypeDB.setType()");
- Ty = StructType::get(Context, Ty, Ty, NULL);
+ Ty = StructType::get(Ty, Ty, NULL);
Ty = SET_TYPE_LLVM(type, Ty);
break;
}
@@ -743,7 +743,7 @@
getTargetData().getTypeAllocSizeInBits(Ty);
if (PadBits) {
const Type *Padding = ArrayType::get(Type::getInt8Ty(Context), PadBits / 8);
- Ty = StructType::get(Context, Ty, Padding, NULL);
+ Ty = StructType::get(Ty, Padding, NULL);
}
}
More information about the llvm-commits
mailing list