summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2019-12-18 10:12:41 -0800
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2019-12-18 11:04:13 -0800
commitca520592c081a76b45613ec794ebee4920933c1c (patch)
tree908961ccd650f68380843885953decebd5dd6cee /clang/lib/CodeGen
parentfc0731b98a67c793862288f8ae334322666214dc (diff)
downloadbcm5719-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.cpp2
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");
}
}
}
OpenPOWER on IntegriCloud