[LLVMdev] Wrong calling convention?
dalej at apple.com
Wed Mar 26 15:20:29 PDT 2008
On Mar 26, 2008, at 3:09 PM, Óscar Fuentes wrote:
> Evan Cheng <evan.cheng at apple.com> writes:
>>> I'll be interested on hearing ideas about how to determine how a
>>> function returns a small struct, without knowing the internals of
>> Take a look at llvm-gcc. Look for HandleAggregateShadowArgument.
> This does not qualify as "without knowing the internals of the struct"
> DefaultABI::HandleReturnType made an interesting reading, although it
> uses information which is unaccessible to my compiler.
Which calling convention to use depends on the contents of the
struct. You cannot make all cases work without that information.
More information about the llvm-dev