1 //===-- Shared memory RPC client instantiation ------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #include "rpc_client.h" 10 #include "rpc.h" 11 12 namespace LIBC_NAMESPACE { 13 namespace rpc { 14 15 /// The libc client instance used to communicate with the server. 16 Client client; 17 18 /// Externally visible symbol to signify the usage of an RPC client to 19 /// whomever needs to run the server as well as provide a way to initialize 20 /// the client with a copy.. 21 extern "C" [[gnu::visibility("protected")]] const void *__llvm_libc_rpc_client = 22 &client; 23 24 } // namespace rpc 25 } // namespace LIBC_NAMESPACE 26