[LLVMdev] Inserting a function call into bitcode

Eli Friedman eli.friedman at gmail.com
Fri Jun 4 11:39:27 PDT 2010


On Fri, Jun 4, 2010 at 11:10 AM, Nehal Gandhi <nbg2k7 at gmail.com> wrote:
> Here you go.

There isn't anything obviously wrong with the given .bc file; output
with trunk lli:
Enter the number:10
Condition evaluated to true
Number 10 is positive

I have no idea why your version of lli is crashing.

-Eli

> -----Original Message-----
> From: Eli Friedman [mailto:eli.friedman at gmail.com]
> Sent: Friday, June 04, 2010 7:42 AM
> To: Nehal Gandhi
> Cc: llvmdev at cs.uiuc.edu
> Subject: Re: [LLVMdev] Inserting a function call into bitcode
>
> On Fri, Jun 4, 2010 at 1:09 AM, Nehal Gandhi <nbg2k7 at gmail.com> wrote:
>> Hi Eli,
>>
>> I have attached a tar file containing Pass (ConditionPass.cpp), External
>> function (PrintRes.cpp) and test program (try.c). I use command chain as
>> describe in previous mail.
>
> Can you just attach the final program.bc you pass to lli?  I don't
> know how to build a plugin off the top of my head.
>
> -Eli
>
>> Thanks,
>> Nehal.
>




More information about the llvm-dev mailing list