forked from OSchip/llvm-project
parent
dd0ab08b6e
commit
d7d8625f4c
|
@ -26,7 +26,6 @@
|
|||
#include "llvm/IR/Attributes.h"
|
||||
#include "llvm/IR/DataLayout.h"
|
||||
#include "llvm/IR/InlineAsm.h"
|
||||
#include "llvm/MC/SubtargetFeature.h"
|
||||
#include "llvm/Support/CallSite.h"
|
||||
#include "llvm/Transforms/Utils/Local.h"
|
||||
using namespace clang;
|
||||
|
@ -1016,18 +1015,6 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI,
|
|||
if (CodeGenOpts.NoImplicitFloat)
|
||||
FuncAttrs.addAttribute(llvm::Attribute::NoImplicitFloat);
|
||||
|
||||
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();
|
||||
unsigned Index = 1;
|
||||
const ABIArgInfo &RetAI = FI.getReturnInfo();
|
||||
|
|
Loading…
Reference in New Issue