Do you mean EvaluateExpressionOptions in Target.h? It seems that this options class is for runtime purpose; I'd like to add another class for compiler options only.
That said, I'm perfectly fine with extending this class though :-) Which do you suggest? Thank you! On Mon, Sep 15, 2014 at 5:33 PM, Greg Clayton <gclay...@apple.com> wrote: > I believe we have an expression options class that can optionally be passed > into expression evaluation. We should extend this class to allow for options > to be added to that. > > >> On Sep 15, 2014, at 5:05 PM, Tong Shen <endlessr...@google.com> wrote: >> >> Hi all, >> >> I think there should be an interface for setting user-defined compiler >> options for the JIT compiler. >> >> For example, executable is compiled with -fno-rtti, but JIT compiler >> doesn't set that by default. This difference will cause search failure >> of certain rtti objects, which causes an immediate crash (the crash >> code is in LLVM, not in LLDB) ... >> >> What's the preferred way to do this? Here's what I'm thinking: >> 1. Add an option to source/Target/Target.cpp >> 2. Make ClangExpressionParser honor that option. >> >> Thanks in advance for any suggestions :-) >> >> -- >> Best Regards, Tong Shen >> _______________________________________________ >> lldb-dev mailing list >> lldb-dev@cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev > -- Best Regards, Tong Shen _______________________________________________ lldb-dev mailing list lldb-dev@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev