clang-cl: Support the /fp options (PR23112)
authorHans Wennborg <hans@hanshq.net>
Wed, 8 Apr 2015 22:55:09 +0000 (22:55 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 8 Apr 2015 22:55:09 +0000 (22:55 +0000)
commit7a2e5c260c89fe40f0d65e165a83d75a34bc587e
tree4b54df19c388612654af53c91b30e4f2b2f706af
parente5b064205ac22c0cd3ad67f317f0c5bbbbb53059
clang-cl: Support the /fp options (PR23112)

This hooks up the /fp options as aliases for -f[no-]fast-math and
-f[no]-trapping-math. It probably doesn't match cl.exe's behaviour
completely (e.g. LLVM is currently never as precise as /fp:precise),
but it's close enough.

Differential revision: http://reviews.llvm.org/D8909

llvm-svn: 234449
clang/include/clang/Driver/CLCompatOptions.td
clang/test/Driver/cl-options.c