comparison 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
comparison
equal deleted inserted replaced
1544:8863cf7236e6 1545:7fcb72d518f6
359 359
360 // line number where defined 360 // line number where defined
361 vals[4] = DtoConstInt(linnum); 361 vals[4] = DtoConstInt(linnum);
362 362
363 // size in bits 363 // size in bits
364 vals[5] = LLConstantInt::get(LLType::Int64Ty, getTypeBitSize(T), false); 364 vals[5] = gIR->context().getConstantInt(LLType::Int64Ty, getTypeBitSize(T), false);
365 365
366 // alignment in bits 366 // alignment in bits
367 vals[6] = LLConstantInt::get(LLType::Int64Ty, getABITypeAlign(T)*8, false); 367 vals[6] = gIR->context().getConstantInt(LLType::Int64Ty, getABITypeAlign(T)*8, false);
368 368
369 // offset in bits 369 // offset in bits
370 vals[7] = LLConstantInt::get(LLType::Int64Ty, 0, false); 370 vals[7] = gIR->context().getConstantInt(LLType::Int64Ty, 0, false);
371 371
372 // FIXME: dont know what this is 372 // FIXME: dont know what this is
373 vals[8] = DtoConstUint(0); 373 vals[8] = DtoConstUint(0);
374 374
375 // FIXME: ditto 375 // FIXME: ditto