[cfe-dev] manipulating @llvm.var.annotation in AST?

Nico Weber thakis at chromium.org
Tue Sep 13 17:40:21 PDT 2011


Ah, didn't read the start of the thread. The AST is effectively
immutable once built: If you change it, you might break invariants
that modules further down the road make. That's why -add-plugin
plugins run after codegen.

Nico

On Tue, Sep 13, 2011 at 5:37 PM, Mark Brown <mbrowncu98 at gmail.com> wrote:
> Thanks, that does run without error.
>
> Still no difference in the IR file though
>
> On Tue, Sep 13, 2011 at 8:33 PM, Nico Weber <thakis at chromium.org> wrote:
>>
>> -add-plugin? :-)
>>
>> On Tue, Sep 13, 2011 at 5:28 PM, Mark Brown <mbrowncu98 at gmail.com> wrote:
>> > error: unknown argument: '-plugin-add'
>> >
>> > Full use was: clang -cc1 -load
>> > ~/llvm/Release+Asserts/lib/libPrintFunctionNames.so -plugin-add
>> > print-fns
>> > double_assigns.c
>> >
>> > On Tue, Sep 13, 2011 at 8:21 PM, Joshua Cranmer <Pidgeot18 at gmail.com>
>> > wrote:
>> >>
>> >> On 9/13/2011 6:26 PM, Mark Brown wrote:
>> >> > Theres a direct way todo this? How can I avoid writing a AST file?
>> >> > When I run
>> >> >
>> >> > clang -cc1 -load ~/llvm/Release+Asserts/lib/libPrintFunctionNames.so
>> >> > -plugin print-fns test_file.c
>> >> > or
>> >> > clang -cc1 -load ~/llvm/Release+Asserts/lib/libPrintFunctionNames.so
>> >> > -plugin print-fns test_file.c -S -emit-llvm
>> >> >
>> >> > I don't get any output, just my own printouts.
>> >>
>> >> Try s/-plugin/-plugin-add/.
>> >>
>> >> --
>> >> Joshua Cranmer
>> >> News submodule owner
>> >> DXR coauthor
>> >>
>> >> _______________________________________________
>> >> cfe-dev mailing list
>> >> cfe-dev at cs.uiuc.edu
>> >> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>> >
>> >
>> > _______________________________________________
>> > 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