comparison gen/llvmhelpers.h @ 1351:8d501abecd24

Initial (but disabled) fix for ticket #294 , the actual part that fixes the bug is in a #if 0 block as I'm afraid it will cause regressions. I'm most likely not going to be around tonight, and maybe not tomorrow as well, so I'm pushing it in case someone wants to run some serious testing/investigate the problem noted in llvmhelpers.cpp : realignOffset .
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Thu, 14 May 2009 17:20:17 +0200
parents 15e9762bb620
children 3f5ea912149d
comparison
equal deleted inserted replaced
1350:15e9762bb620 1351:8d501abecd24
139 DValue* DtoInlineAsmExpr(Loc loc, FuncDeclaration* fd, Expressions* arguments); 139 DValue* DtoInlineAsmExpr(Loc loc, FuncDeclaration* fd, Expressions* arguments);
140 140
141 /// Create the IrModule if necessary and returns it. 141 /// Create the IrModule if necessary and returns it.
142 IrModule* getIrModule(Module* M); 142 IrModule* getIrModule(Module* M);
143 143
144 /// Update an offset to make sure it follows both the D and LLVM alignments.
145 /// Returns the offset rounded up to the closest safely aligned offset.
146 size_t realignOffset(size_t offset, Type* type);
147
144 //////////////////////////////////////////// 148 ////////////////////////////////////////////
145 // gen/tocall.cpp stuff below 149 // gen/tocall.cpp stuff below
146 //////////////////////////////////////////// 150 ////////////////////////////////////////////
147 151
148 /// convert DMD calling conv to LLVM 152 /// convert DMD calling conv to LLVM