[LLVMdev] HELP! PLEASE!

Caldarale, Charles R Chuck.Caldarale at unisys.com
Sat Aug 30 05:25:58 PDT 2014


> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of Logan Streondj
> Subject: Re: [LLVMdev] HELP! PLEASE!

> > The doxygen documentation says that the AssemblyAnnotationWriter is
> > optional.  I bet it'll just work if you pass a NULL pointer for the
> > AssemblyAnnotationWriter argument.

> unfortunately that did not work.

> in spel.cpp:
>         void *nullPointer = 0; 
>         raw_fd_ostream ros("-",errorOut);
>         module -> Module::print(ros,nullPointer);      

You didn't actually try what was suggested.  Do this:

        raw_fd_ostream ros("-", errorOut);
        module->print(ros, NULL);

You may need to brush up on C/C++ basics...

 - Chuck





More information about the llvm-dev mailing list