summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2014-07-04 12:37:04 +0000
committerSimon Atanasyan <simon@atanasyan.com>2014-07-04 12:37:04 +0000
commit4e16a4250dfb1d7858097d37a8796c2c42c8b47f (patch)
tree00ed4192e9623ac7b287f1203098eefe9dd9cdc6 /clang/lib/Basic
parent26610c596002cb74294dae275ddf790655e83cee (diff)
downloadbcm5719-llvm-4e16a4250dfb1d7858097d37a8796c2c42c8b47f.tar.gz
bcm5719-llvm-4e16a4250dfb1d7858097d37a8796c2c42c8b47f.zip
[Driver][Mips] Support one more MIPS CPU name - octeon.
llvm-svn: 212339
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r--clang/lib/Basic/Targets.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp
index 9e3686be0bd..cc20388974e 100644
--- a/clang/lib/Basic/Targets.cpp
+++ b/clang/lib/Basic/Targets.cpp
@@ -5320,6 +5320,7 @@ public:
.Case("mips64", true)
.Case("mips64r2", true)
.Case("mips64r6", true)
+ .Case("octeon", true)
.Default(false);
}
const std::string& getCPU() const { return CPU; }
@@ -5332,7 +5333,10 @@ public:
Features["n64"] = false;
Features[ABI] = true;
- Features[CPU] = true;
+ if (CPU == "octeon")
+ Features["mips64r2"] = Features["cnmips"] = true;
+ else
+ Features[CPU] = true;
}
void getTargetDefines(const LangOptions &Opts,
OpenPOWER on IntegriCloud