Mercurial > projects > ldc
diff gen/todebug.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 | 6364e09628fd |
children | d6e8d5db259f |
line wrap: on
line diff
--- a/gen/todebug.cpp Fri Jul 17 19:23:20 2009 +0200 +++ b/gen/todebug.cpp Wed Jul 15 18:09:41 2009 +0200 @@ -361,13 +361,13 @@ vals[4] = DtoConstInt(linnum); // size in bits - vals[5] = LLConstantInt::get(LLType::Int64Ty, getTypeBitSize(T), false); + vals[5] = gIR->context().getConstantInt(LLType::Int64Ty, getTypeBitSize(T), false); // alignment in bits - vals[6] = LLConstantInt::get(LLType::Int64Ty, getABITypeAlign(T)*8, false); + vals[6] = gIR->context().getConstantInt(LLType::Int64Ty, getABITypeAlign(T)*8, false); // offset in bits - vals[7] = LLConstantInt::get(LLType::Int64Ty, 0, false); + vals[7] = gIR->context().getConstantInt(LLType::Int64Ty, 0, false); // FIXME: dont know what this is vals[8] = DtoConstUint(0);