[PATCH] D157251: [X86][regcall] Do not produce @ number suffix if it is regcall4
Bing Yu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 6 20:12:29 PDT 2023
yubing created this revision.
Herald added a project: All.
yubing requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D157251
Files:
clang/lib/AST/Mangle.cpp
Index: clang/lib/AST/Mangle.cpp
===================================================================
--- clang/lib/AST/Mangle.cpp
+++ clang/lib/AST/Mangle.cpp
@@ -212,6 +212,10 @@
else
mangleCXXName(GD, Out);
+ // do no produce @<number> suffix if it is regcall4
+ if (getASTContext().getLangOpts().RegCall4)
+ return;
+
const FunctionDecl *FD = cast<FunctionDecl>(D);
const FunctionType *FT = FD->getType()->castAs<FunctionType>();
const FunctionProtoType *Proto = dyn_cast<FunctionProtoType>(FT);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157251.547632.patch
Type: text/x-patch
Size: 522 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230807/c78cb70a/attachment.bin>
More information about the cfe-commits
mailing list