summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-01-08 02:28:20 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-01-08 02:28:20 +0000
commit599ebf2767d8c61dd8dbb0d4fb34e9eac9d57676 (patch)
treecd03e03d48f00b47f43c360c2bcdd603ef4a4e31 /llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
parent7cb9d98cf9df2d6544cad826ce9e3719c406f0cf (diff)
downloadbcm5719-llvm-599ebf2767d8c61dd8dbb0d4fb34e9eac9d57676.tar.gz
bcm5719-llvm-599ebf2767d8c61dd8dbb0d4fb34e9eac9d57676.zip
Remove static global GCNames from Function.cpp and move it to the Context
This remove the need for locking when deleting a function. Differential Revision: http://reviews.llvm.org/D15988 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 257139
Diffstat (limited to 'llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
index b21d037bf7a..94768a255ca 100644
--- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
+++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
@@ -2558,7 +2558,7 @@ void RewriteStatepointsForGC::stripNonValidAttributesFromBody(Function &F) {
static bool shouldRewriteStatepointsIn(Function &F) {
// TODO: This should check the GCStrategy
if (F.hasGC()) {
- const char *FunctionGCName = F.getGC();
+ const auto &FunctionGCName = F.getGC();
const StringRef StatepointExampleName("statepoint-example");
const StringRef CoreCLRName("coreclr");
return (StatepointExampleName == FunctionGCName) ||
OpenPOWER on IntegriCloud