On 31 January 2014 17:53, Reid Kleckner <[email protected]> wrote: > I think you want 'Args.hasFlag(options::OPT_fno_exceptions, > options::OPT_fexceptions, false)' in order to make sure that 'clang > -fno-exceptions -fexceptions' produces unwind tables. >
Yes, I changed that already. Thanks! I also seem to recall that there are major problems with -backend-option if > you want to run Clang on multiple TUs in the same process. It causes us to > call llvm::cl::ParseCommandLineOptions twice, which isn't allowed, and bad > things happen. It doesn't have to be fixed now, but long term it needs to > go away if anyone wants to, say, run a Clang tool over code that normally > uses -fno-exceptions on ARM. > There were some discussions on multiple calls to the driver on other threads. I have to say I also get very confused on which way Clang is using which arguments. For this patch, I just used what was already there, so it'd be easier to whomever refactors the driver's code to do them all at once. cheers, --renato
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
