Can I create a "naked" function that has only inline assembler and no return IR for example? If I create just a function will an empty basic block, it's core dumps. I'm debugging it now.
On 04/20/2013 01:30 PM, reed kotler wrote:> Can I create a "naked" function that has only inline assembler and no > return IR for example? > > If I create just a function will an empty basic block, it's core dumps. > > I'm debugging it now.Seems that you have to have at least a return instruction. Is that a bug? Why can't I do the return myself if it's all inline assembly code.
On 04/20/2013 02:04 PM, Reed Kotler wrote:> On 04/20/2013 01:30 PM, reed kotler wrote: >> Can I create a "naked" function that has only inline assembler and no >> return IR for example? >> >> If I create just a function will an empty basic block, it's core dumps. >> >> I'm debugging it now. > > Seems that you have to have at least a return instruction. > > Is that a bug? > > Why can't I do the return myself if it's all inline assembly code.It's not hard for me to suppress the return in "naked" functions.