diff options
| author | Matheus Almeida <matheus.almeida@imgtec.com> | 2014-05-07 16:16:07 +0000 |
|---|---|---|
| committer | Matheus Almeida <matheus.almeida@imgtec.com> | 2014-05-07 16:16:07 +0000 |
| commit | 602bff3184d5870167ee1a1e345f420a8b093c05 (patch) | |
| tree | f709884807b76fb5be45b2ead01e9417fe79ac93 /clang/lib/Driver/Tools.cpp | |
| parent | 7c093732e8b260e4656e31759e09b81f2b1056ed (diff) | |
| download | bcm5719-llvm-602bff3184d5870167ee1a1e345f420a8b093c05.tar.gz bcm5719-llvm-602bff3184d5870167ee1a1e345f420a8b093c05.zip | |
[mips] Pass nan2008 info to the back-end.
Summary: The initial support for NaN2008 was added to the back-end in r206396.
Reviewers: atanasyan
Reviewed By: atanasyan
Differential Revision: http://reviews.llvm.org/D3448
llvm-svn: 208220
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index b86df2acdb5..2ab7ea3fded 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -1037,8 +1037,14 @@ static void getMIPSTargetFeatures(const Driver &D, const ArgList &Args, } if (Arg *A = Args.getLastArg(options::OPT_mnan_EQ)) { - if (StringRef(A->getValue()) == "2008") + StringRef Val = StringRef(A->getValue()); + if (Val == "2008") Features.push_back("+nan2008"); + else if (Val == "legacy") + Features.push_back("-nan2008"); + else + D.Diag(diag::err_drv_unsupported_option_argument) + << A->getOption().getName() << Val; } AddTargetFeature(Args, Features, options::OPT_msingle_float, |

