[LLVMdev] More questions on CompilerDriver.
the.dead.shall.rise at gmail.com
Tue Dec 8 04:27:44 PST 2009
On Tue, Dec 8, 2009 at 4:41 AM, Sanjiv Gupta <sanjiv.gupta at microchip.com> wrote:
> Mikhail Glushenkov wrote:
>> > 2. Is there anyway to call a C++ hook from inside actions?
>> > for example
>> > (actions (case
>> > (not_empty "Wl,"), (append_cmd "$CALL(Myhook)" )))
>> Not yet, this is something I'm working on right now.
> Hi Mikhail,
> Did you get a chance to do something about this?
Sorry for the delay, will be ready Real Soon Now.
I've implemented 'forward_transformed_value', though.
>> BTW, I've implemented the OptionPreprocessor feature that we discussed
>> some time ago. See the documentation for details.
> is it a good idea to include something called "set_option"? For example if
> none of O0, O1, O2 or O3 are specified on the command line, We can just make
> O2 as default by using the set_option.
Yes, I think it's a good idea.
For now you can simulate this with 'init' (enable -O2 by default and
make -O0 + -O2 = -O0, and -O2 + -O3 = -O3).
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
More information about the llvm-dev