diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-02-27 00:06:04 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-02-27 00:06:04 +0000 |
commit | 899245792776dd219a3c36eb19b42272e270bc0c (patch) | |
tree | 6ac05a34d42c4b09361726b0125cb335297ee3ee /lib/CodeGen | |
parent | deb8f5d533b7bcd962976ecdbc1464fe754b6de0 (diff) |
Reapply r176133 with testcase fixes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176145 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGCall.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp index 33b0475c56..3bcf7d0f50 100644 --- a/lib/CodeGen/CGCall.cpp +++ b/lib/CodeGen/CGCall.cpp @@ -1021,19 +1021,6 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI, // Attributes that should go on the call site only. if (!CodeGenOpts.SimplifyLibCalls) FuncAttrs.addAttribute(llvm::Attribute::NoBuiltin); - } else { - // Attributes that should go on the function, but not the call site. - if (!TargetOpts.CPU.empty()) - FuncAttrs.addAttribute("target-cpu", TargetOpts.CPU); - - if (TargetOpts.Features.size()) { - llvm::SubtargetFeatures Features; - for (std::vector<std::string>::const_iterator - it = TargetOpts.Features.begin(), - ie = TargetOpts.Features.end(); it != ie; ++it) - Features.AddFeature(*it); - FuncAttrs.addAttribute("target-features", Features.getString()); - } } QualType RetTy = FI.getReturnType(); |