diff options
| author | Simon Atanasyan <simon@atanasyan.com> | 2013-05-11 06:33:44 +0000 |
|---|---|---|
| committer | Simon Atanasyan <simon@atanasyan.com> | 2013-05-11 06:33:44 +0000 |
| commit | c580b3248c95d83db9d9e076f8c702b2b2d1f29c (patch) | |
| tree | 508ba651698801cf80ebae72f8177b5a303e3f15 /clang/lib | |
| parent | 1fa5d64b7687858bc1e48f3bc87026d6e38d5395 (diff) | |
| download | bcm5719-llvm-c580b3248c95d83db9d9e076f8c702b2b2d1f29c.tar.gz bcm5719-llvm-c580b3248c95d83db9d9e076f8c702b2b2d1f29c.zip | |
[Mips] Add -mldc1-sdc1 / -mno-ldc1-sdc1 command line options.
llvm-svn: 181660
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index a86199ef9c5..4fbc910837a 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -1018,6 +1018,14 @@ void Clang::AddMIPSTargetArgs(const ArgList &Args, } } + if (Arg *A = Args.getLastArg(options::OPT_mldc1_sdc1, + options::OPT_mno_ldc1_sdc1)) { + if (A->getOption().matches(options::OPT_mno_ldc1_sdc1)) { + CmdArgs.push_back("-mllvm"); + CmdArgs.push_back("-mno-ldc1-sdc1"); + } + } + if (Arg *A = Args.getLastArg(options::OPT_G)) { StringRef v = A->getValue(); CmdArgs.push_back("-mllvm"); |

