diff options
| author | Akira Hatanaka <ahatanaka@apple.com> | 2017-09-20 06:27:39 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@apple.com> | 2017-09-20 06:27:39 +0000 |
| commit | 1b9418e163bb64c4f673bb2d53ab7ae4f73b1e66 (patch) | |
| tree | ad8e77909e75f0ae9bea119024b3729027fa4607 /clang/lib/CodeGen | |
| parent | fc587e6a570796ca321aa981866359c3ae13e21e (diff) | |
| download | bcm5719-llvm-1b9418e163bb64c4f673bb2d53ab7ae4f73b1e66.tar.gz bcm5719-llvm-1b9418e163bb64c4f673bb2d53ab7ae4f73b1e66.zip | |
Revert "Add support for attribute 'noescape'."
This reverts r313717.
I closed the wrong phabricator review.
llvm-svn: 313721
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index a432c3ca20d..c6988b5a9f3 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -455,15 +455,11 @@ const CGFunctionInfo & CodeGenTypes::arrangeObjCMessageSendSignature(const ObjCMethodDecl *MD, QualType receiverType) { SmallVector<CanQualType, 16> argTys; - SmallVector<FunctionProtoType::ExtParameterInfo, 4> extParamInfos(2); argTys.push_back(Context.getCanonicalParamType(receiverType)); argTys.push_back(Context.getCanonicalParamType(Context.getObjCSelType())); // FIXME: Kill copy? for (const auto *I : MD->parameters()) { argTys.push_back(Context.getCanonicalParamType(I->getType())); - auto extParamInfo = FunctionProtoType::ExtParameterInfo().withIsNoEscape( - I->hasAttr<NoEscapeAttr>()); - extParamInfos.push_back(extParamInfo); } FunctionType::ExtInfo einfo; @@ -479,7 +475,7 @@ CodeGenTypes::arrangeObjCMessageSendSignature(const ObjCMethodDecl *MD, return arrangeLLVMFunctionInfo( GetReturnType(MD->getReturnType()), /*instanceMethod=*/false, - /*chainCall=*/false, argTys, einfo, extParamInfos, required); + /*chainCall=*/false, argTys, einfo, {}, required); } const CGFunctionInfo & @@ -2097,9 +2093,6 @@ void CodeGenModule::ConstructAttributeList( break; } - if (FI.getExtParameterInfo(ArgNo).isNoEscape()) - Attrs.addAttribute(llvm::Attribute::NoCapture); - if (Attrs.hasAttributes()) { unsigned FirstIRArg, NumIRArgs; std::tie(FirstIRArg, NumIRArgs) = IRFunctionArgs.getIRArgs(ArgNo); |

