[PATCH] D67867: [libc] Add few docs and implementation of strcpy and strcat.
James Y Knight via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 30 14:35:38 PDT 2019
jyknight added a comment.
In D67867#1688556 <https://reviews.llvm.org/D67867#1688556>, @sivachandra wrote:
> The objcopy step is required to avoid putting mangled names with the alias attribute. If there is any other way to achieve the same thing, I am open to it.
Ah, I see! I'd suggest using extern "C" instead. There's no need for these be C++-mangled -- you can simply use a name prefix instead. E.g., if you define it as `extern "C" __llvm_libc_strcpy(...) {}` then it's trivial to make the `strcpy` alias without objcopy magic.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67867/new/
https://reviews.llvm.org/D67867
More information about the llvm-commits
mailing list