[cfe-commits] r129145 - in /cfe/trunk: include/clang/Driver/Options.td lib/Driver/Tools.cpp

Eli Friedman eli.friedman at gmail.com
Fri Apr 8 12:41:15 PDT 2011

On Fri, Apr 8, 2011 at 11:47 AM, Evan Cheng <evan.cheng at apple.com> wrote:
> Author: evancheng
> Date: Fri Apr  8 13:47:41 2011
> New Revision: 129145
> URL: http://llvm.org/viewvc/llvm-project?rev=129145&view=rev
> Log:
> Add -mtrap_function=<> option. rdar://9257465

For the benefit of anyone who isn't at Apple, would you mind giving a
quick description of why someone would want to use this?  It isn't
immediately obvious, given that it's easy to change a  __builtin_trap
written into the code, and the optimizers only generate traps for
undefined behavior.


More information about the cfe-commits mailing list