diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-03-28 13:51:36 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-03-28 13:51:36 +0000 |
commit | 829d187e2100d2cfd85acefc2e867d12336e393f (patch) | |
tree | 417cde8cead2c0a114196b1e62a4a58800325ed0 /lib/Basic/Targets.cpp | |
parent | 8203d9f0490a7fbe0a7382165e0e8dc6c1de577d (diff) |
Add support for gcc-compatible -mpopcntd -mno-popcntd PPC options
gcc provides -mpopcntd and -mno-popcntd for controlling the popcntd target
feature; support these options as well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178235 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
-rw-r--r-- | lib/Basic/Targets.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 8dc9b20f4c..4ca8fbf773 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -1029,7 +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 == "qpx") { + if (Name == "altivec" || Name == "mfocrf" || Name == "popcntd" || + Name == "qpx") { Features[Name] = Enabled; return true; } |