[PATCH] D73307: Unique Names for Functions with Internal Linkage
Sriraman Tallam via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 23 16:49:38 PST 2020
tmsriram created this revision.
tmsriram added reviewers: MaskRay, mehdi_amini, davidxl, pcc, rnk.
tmsriram added a parent revision: D68049: Propeller: Clang options for basic block sections .
This is a subset of the functionality in Propeller patches.
This patch adds a new clang option, -funique-internal-funcnames, to generate unique names for functions with internal linkage. This uses getUniqueModuleID and is a best effort and is highly likely that it will generate a unique name.
https://reviews.llvm.org/D73307
Files:
clang/include/clang/Basic/CodeGenOptions.def
clang/include/clang/Driver/Options.td
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/CodeGen/unique_internal_funcnames.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73307.240048.patch
Type: text/x-patch
Size: 5362 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200124/5d27eb3b/attachment.bin>
More information about the cfe-commits
mailing list