summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2013-05-11 06:33:44 +0000
committerSimon Atanasyan <simon@atanasyan.com>2013-05-11 06:33:44 +0000
commitc580b3248c95d83db9d9e076f8c702b2b2d1f29c (patch)
tree508ba651698801cf80ebae72f8177b5a303e3f15 /clang/lib
parent1fa5d64b7687858bc1e48f3bc87026d6e38d5395 (diff)
downloadbcm5719-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.cpp8
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");
OpenPOWER on IntegriCloud