[libc-commits] [libc] [llvm] [libc] Export a pointer to the RPC client directly (PR #117913)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Wed Nov 27 12:39:09 PST 2024
================
@@ -29,7 +29,7 @@ static_assert(cpp::is_trivially_copyable<Client>::value &&
"The client is not trivially copyable from the server");
/// The libc client instance used to communicate with the server.
-extern Client client;
+[[gnu::visibility("protected")]] extern Client client asm("__llvm_rpc_client");
----------------
jhuber6 wrote:
I don't know, but it's already how we export the `libc` functions themselves in the `libc` project so it's nothing new there. It's like
```
namespace LIBC_NAMESPACE {
void foo() __asm__("foo");
}
```
https://github.com/llvm/llvm-project/pull/117913
More information about the libc-commits
mailing list