[clang] [Clang] Pass -fseparate-named-sections from the driver (PR #91567)
via cfe-commits
cfe-commits at lists.llvm.org
Thu May 9 00:52:35 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-driver
Author: Petr Hosek (petrhosek)
<details>
<summary>Changes</summary>
This is a follow up to #<!-- -->91028.
---
Full diff: https://github.com/llvm/llvm-project/pull/91567.diff
1 Files Affected:
- (modified) clang/lib/Driver/ToolChains/Clang.cpp (+2)
``````````diff
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
index 0a2ea96de7382..ceb5eb835ddce 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -6116,6 +6116,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
Args.addOptOutFlag(CmdArgs, options::OPT_funique_section_names,
options::OPT_fno_unique_section_names);
+ Args.addOptInFlag(CmdArgs, options::OPT_fseparate_named_sections,
+ options::OPT_fno_separate_named_sections);
Args.addOptInFlag(CmdArgs, options::OPT_funique_internal_linkage_names,
options::OPT_fno_unique_internal_linkage_names);
Args.addOptInFlag(CmdArgs, options::OPT_funique_basic_block_section_names,
``````````
</details>
https://github.com/llvm/llvm-project/pull/91567
More information about the cfe-commits
mailing list