diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-02-26 23:01:33 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-02-26 23:01:33 +0000 |
commit | fdfd70a00c4f910ddb19ef139e71f8a7ae8cdbdd (patch) | |
tree | 69a86435d7e52fc30de5261c401bd165b6c3806c | |
parent | 344d36aa9f639523513b8ca0b834831440c4e541 (diff) | |
download | bcm5719-llvm-fdfd70a00c4f910ddb19ef139e71f8a7ae8cdbdd.tar.gz bcm5719-llvm-fdfd70a00c4f910ddb19ef139e71f8a7ae8cdbdd.zip |
Don't set the -target-cpu and -target-features attributes just now.
This is causing some problems with some of the builders. It's non-trivial to
reset the target's features.
llvm-svn: 176133
-rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 33b0475c564..3bcf7d0f50a 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/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(); |