diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-03-30 13:47:44 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-03-30 13:47:44 +0000 |
commit | fe6b2713656c2d1bf559be357f0e0bf2d09bebd6 (patch) | |
tree | dde711db319c8824ea3a1b78f64f45a89b6ed3da /lib/Basic/Targets.cpp | |
parent | 66dca6eaaa2e9c24023fc919ab72b8ae2df1e288 (diff) |
Add support for gcc-compatible -mfprnd -mno-fprnd PPC options
gcc provides -mfprnd and -mno-fprnd for controlling the fprnd target
feature; support these options as well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
-rw-r--r-- | lib/Basic/Targets.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index bd3f76df42..a17b2a8256 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -1029,8 +1029,8 @@ void PPCTargetInfo::getDefaultFeatures(llvm::StringMap<bool> &Features) const { bool PPCTargetInfo::setFeatureEnabled(llvm::StringMap<bool> &Features, StringRef Name, bool Enabled) const { - if (Name == "altivec" || Name == "mfocrf" || Name == "popcntd" || - Name == "qpx") { + if (Name == "altivec" || Name == "fprnd" || Name == "mfocrf" || + Name == "popcntd" || Name == "qpx") { Features[Name] = Enabled; return true; } |