]> granicus.if.org Git - clang/commitdiff
Don't set the -target-cpu and -target-features attributes just now.
authorBill Wendling <isanbard@gmail.com>
Tue, 26 Feb 2013 23:01:33 +0000 (23:01 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 26 Feb 2013 23:01:33 +0000 (23:01 +0000)
This is causing some problems with some of the builders. It's non-trivial to
reset the target's features.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176133 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCall.cpp

index 33b0475c564ac43e3e8143619ab581cab81c98b1..3bcf7d0f50ab7172aea695a2965675cb705f2a84 100644 (file)
@@ -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();