]> granicus.if.org Git - llvm/commit
Orc: Simplify RPC naming system by using function-local statics
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 5 Feb 2019 23:38:55 +0000 (23:38 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 5 Feb 2019 23:38:55 +0000 (23:38 +0000)
commiteae2f5e5e0c3757c421bd53e9a32751cac3df98e
tree0bff8437104e9d104c7b2991f1fc4fc3b59e06d9
parent86faf4cf8f9908aa8c9a57205ae3c977ce4fd9b1
Orc: Simplify RPC naming system by using function-local statics

The existing scheme of class template static members for Name and
NameMutex is a bit verbose, involves global ctors (even if they're cheap
for string and mutex, still not entirely free), and (importantly/my
immediate motivation here) trips over a bug in LLVM's modules
implementation that's a bit involved (hmm, sounds like Mr. Smith has a
fix for the modules thing - but I'm still inclined to commit this patch
as general goodness).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353241 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/Orc/RPCSerialization.h
include/llvm/ExecutionEngine/Orc/RPCUtils.h