Mercurial > projects > ldc
comparison gen/llvmhelpers.h @ 1643:8f121883bce8
Apply patch from klickverbot. This is his 'proper fix' patch for bug #395.
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Mon, 08 Mar 2010 23:37:40 -0700 |
parents | 1e5a14691e77 |
children | 40bd4a0d4870 |
comparison
equal
deleted
inserted
replaced
1642:f49cb50c6064 | 1643:8f121883bce8 |
---|---|
144 | 144 |
145 /// Update an offset to make sure it follows both the D and LLVM alignments. | 145 /// Update an offset to make sure it follows both the D and LLVM alignments. |
146 /// Returns the offset rounded up to the closest safely aligned offset. | 146 /// Returns the offset rounded up to the closest safely aligned offset. |
147 size_t realignOffset(size_t offset, Type* type); | 147 size_t realignOffset(size_t offset, Type* type); |
148 | 148 |
149 /// Returns the llvm::Value of the passed DValue, making sure that it is an | |
150 /// lvalue (has a memory address), so it can be passed to the D runtime | |
151 /// functions without problems. | |
152 LLValue* makeLValue(Loc& loc, DValue* value); | |
153 | |
149 //////////////////////////////////////////// | 154 //////////////////////////////////////////// |
150 // gen/tocall.cpp stuff below | 155 // gen/tocall.cpp stuff below |
151 //////////////////////////////////////////// | 156 //////////////////////////////////////////// |
152 | 157 |
153 /// convert DMD calling conv to LLVM | 158 /// convert DMD calling conv to LLVM |