[Lldb-commits] [PATCH] D15527: Add ability to override JIT expr compiler options.

Sean Callanan via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 13 15:48:42 PST 2016


spyffe added a comment.

What I'm getting at here is: OverrideExprOptions just subclasses clang::TargetOptions if I'm not mistaken.  What I might suggest is

virtual bool
OverrideExprOptions (clang::TargetOptions &options)
{

  return false; // return true if you actually modified "options"

}

You'd just modify the compiler's target options in place.  That way you only touch the state you care about, and nothing gets dynamically allocated (except the backing stores for the strings in the TargetOptions...)


http://reviews.llvm.org/D15527





More information about the lldb-commits mailing list