[cfe-dev] Compile a string?
Daniel Waterworth
da.waterworth at gmail.com
Tue Jun 22 23:46:28 PDT 2010
Hi,
So I create the CompilerInvocation and remap with
addRemappedFile(llvm::StringRef From, const llvm::MemoryBuffer * To)
in PreprocessorOptions. Sounds easy enough [=
Thanks,
Daniel
On 23 June 2010 06:12, Daniel Dunbar <daniel at zuster.org> wrote:
> 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
>>
>
--
active-thought.com
More information about the cfe-dev
mailing list