[cfe-dev] Compile a string?

Daniel Dunbar daniel at zuster.org
Tue Jun 22 22:12:42 PDT 2010


Hi Daniel,

Take a look at the clang-interpreter example for most of it. Instead
of using CompilerInvocation::CreateFromArgs, you will want to
construct a CompilerInvocation by hand, including an input file name,
and then use the remapping arguments to associate your string with
that file.

 - Daniel

On Sat, Jun 19, 2010 at 1:33 AM, Daniel Waterworth
<da.waterworth at gmail.com> wrote:
> Hi,
>
> I'm trying to compile a string into a Module so that I can link and
> then JIT it. What would be the best way of doing this?
>
> Thanks,
>
> Daniel
>
> --
> active-thought.com
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>



More information about the cfe-dev mailing list