Remove static global GCNames from Function.cpp and move it to the Context
authorMehdi Amini <mehdi.amini@apple.com>
Fri, 8 Jan 2016 02:28:20 +0000 (02:28 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Fri, 8 Jan 2016 02:28:20 +0000 (02:28 +0000)
commit3569d3c5ebfff8b9b20c47e7eb1ddf508e6e9bbf
treedeadbab18cd5f314eedb75779ade47b1582c37dd
parente51b530b1255624a0a170395ce2d950b56d6c7f3
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>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257139 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Function.h
include/llvm/IR/LLVMContext.h
lib/IR/Core.cpp
lib/IR/Function.cpp
lib/IR/LLVMContext.cpp
lib/IR/LLVMContextImpl.h
lib/Transforms/Scalar/PlaceSafepoints.cpp
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp