Mercurial > projects > ldc
diff gen/abi.cpp @ 1545:7fcb72d518f6
More factory methods moved to LLVMContext
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Wed, 15 Jul 2009 18:09:41 +0200 |
parents | 2292878925f4 |
children | d6e8d5db259f |
line wrap: on
line diff
--- a/gen/abi.cpp Fri Jul 17 19:23:20 2009 +0200 +++ b/gen/abi.cpp Wed Jul 15 18:09:41 2009 +0200 @@ -60,7 +60,7 @@ rpart = gIR->ir->CreateBitCast(rpart, LLType::FloatTy, ".re"); // extract imag part - LLValue* ipart = gIR->ir->CreateLShr(in, LLConstantInt::get(LLType::Int64Ty, 32, false)); + LLValue* ipart = gIR->ir->CreateLShr(in, gIR->context().getConstantInt(LLType::Int64Ty, 32, false)); ipart = gIR->ir->CreateTrunc(ipart, LLType::Int32Ty); ipart = gIR->ir->CreateBitCast(ipart, LLType::FloatTy, ".im"); @@ -87,7 +87,7 @@ // zext to i64 i = gIR->ir->CreateZExt(i, LLType::Int64Ty); // shift up - i = gIR->ir->CreateShl(i, LLConstantInt::get(LLType::Int64Ty, 32, false)); + i = gIR->ir->CreateShl(i, gIR->context().getConstantInt(LLType::Int64Ty, 32, false)); // combine and return return v = gIR->ir->CreateOr(r, i);