[PATCH] D101004: [CodeGen] Do not split functions with attr "implicit-section-name".
Snehasish Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 21 21:46:34 PDT 2021
snehasish added inline comments.
================
Comment at: llvm/lib/CodeGen/MachineFunctionSplitter.cpp:104
// split functions within the same section as specified by the attribute.
- if (!MF.getFunction().getSection().empty())
+ if (!MF.getFunction().getSection().empty() ||
+ MF.getFunction().hasFnAttribute("implicit-section-name"))
----------------
rahmanl wrote:
> nit: Can you use `hasSection()` here to be more consistent with TargetLoweringObjectFile.cpp?
Looks like this is not consistent even though the documentation suggests that they should be equivalent, so I'll revert it for now.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101004/new/
https://reviews.llvm.org/D101004
More information about the llvm-commits
mailing list