[PATCH] D137073: [clang] Fix inline builtin functions of an __asm__ renamed function with symbol prefixes
Martin Storsjö via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 1 04:42:05 PDT 2022
mstorsjo added inline comments.
================
Comment at: clang/lib/CodeGen/CGExpr.cpp:5020
+ std::string AsmName;
+ if (auto *A = FD->getAttr<AsmLabelAttr>()) {
+ StringRef UserLabelPrefix =
----------------
rnk wrote:
> I think you can call CGM.getMangledName, but I might be wrong. It's worth doing if straightforward.
Thanks, that seems to work just great, and simplifies things nicely!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137073/new/
https://reviews.llvm.org/D137073
More information about the cfe-commits
mailing list