aboutsummaryrefslogtreecommitdiff
path: root/lib/Basic
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-03-28 08:38:53 +0000
committerHal Finkel <hfinkel@anl.gov>2013-03-28 08:38:53 +0000
commitf4320ab08da5e4c927ef326c68d5081f5f2a2268 (patch)
treec3a2849d6487823874f1896bf6955aa3fe9730e2 /lib/Basic
parentedaf281379e0aa712caf984ee33388e5f414e18d (diff)
Add support for gcc-compatible -mmfcrf -mno-mfcrf PPC options
gcc provides -mmfcrf and -mno-mfcrf for controlling what we call the mfocrf target feature. Also, PPC is now making use of the static function AddTargetFeature used by the Mips Driver code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178227 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic')
-rw-r--r--lib/Basic/Targets.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp
index 09d8be682f..8dc9b20f4c 100644
--- a/lib/Basic/Targets.cpp
+++ b/lib/Basic/Targets.cpp
@@ -1029,7 +1029,7 @@ void PPCTargetInfo::getDefaultFeatures(llvm::StringMap<bool> &Features) const {
bool PPCTargetInfo::setFeatureEnabled(llvm::StringMap<bool> &Features,
StringRef Name,
bool Enabled) const {
- if (Name == "altivec" || Name == "qpx") {
+ if (Name == "altivec" || Name == "mfocrf" || Name == "qpx") {
Features[Name] = Enabled;
return true;
}