[LLVMdev] Lowering formal pointer arguments
Christoph Erhardt
christoph at sicherha.de
Fri Mar 16 07:39:26 PDT 2012
Hi Patrik,
> DAG.getMachineFunction().getFunction() only works in LowerFormalArguments (there it returns the callee), not in LowerCall (where it returns the caller, rather than the callee). You need to pass more information about the function type to LowerCall (besides partial information such as the isVarArg parameter).
>
> I can provide a patch if you are interested. (Unfortunately, to push this upstream has been on my to-do-list for while).
please do! I have been facing the same problem and am very interested in
a clean solution for this.
Best regards,
Christoph
More information about the llvm-dev
mailing list