blob: b25ff56410d7f5b6fa633f8c735c8d573c477cd5 [file]
//===-- Shared memory RPC client instantiation ------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#include "rpc_client.h"
#include "rpc.h"
namespace __llvm_libc {
namespace rpc {
/// The libc client instance used to communicate with the server.
Client client;
/// Externally visible symbol to signify the usage of an RPC client to
/// whomever needs to run the server as well as provide a way to initialize
/// the client with a copy..
extern "C" [[gnu::visibility("protected")]] void *__llvm_libc_rpc_client =
&client;
} // namespace rpc
} // namespace __llvm_libc