diff options
author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2019-12-18 10:12:41 -0800 |
---|---|---|
committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2019-12-18 11:04:13 -0800 |
commit | ca520592c081a76b45613ec794ebee4920933c1c (patch) | |
tree | 908961ccd650f68380843885953decebd5dd6cee /clang/lib/CodeGen | |
parent | fc0731b98a67c793862288f8ae334322666214dc (diff) | |
download | bcm5719-llvm-ca520592c081a76b45613ec794ebee4920933c1c.tar.gz bcm5719-llvm-ca520592c081a76b45613ec794ebee4920933c1c.zip |
[Clang FE, SystemZ] Don't add "true" value for the "mnop-mcount" attribute.
Let the "mnop-mcount" function attribute simply be present or non-present.
Update SystemZ backend as well to use hasFnAttribute() instead.
Review: Ulrich Weigand
https://reviews.llvm.org/D71669
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 0db17431814..89ce31e9b45 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -966,7 +966,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, if (!CGM.getCodeGenOpts().CallFEntry) CGM.getDiags().Report(diag::err_opt_not_valid_without_opt) << "-mnop-mcount" << "-mfentry"; - Fn->addFnAttr("mnop-mcount", "true"); + Fn->addFnAttr("mnop-mcount"); } } } |