[libc-commits] [libc] [llvm] [libc] Export a pointer to the RPC client directly (PR #117913)

Shilei Tian via libc-commits libc-commits at lists.llvm.org
Wed Nov 27 12:36:42 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");
----------------
shiltian wrote:

I meant using `asm` to rename a variable.

https://github.com/llvm/llvm-project/pull/117913


More information about the libc-commits mailing list