[llvm-branch-commits] [llvm] [CodeGen][StaticDataSplitter]Support constant pool partitioning (PR #129781)
David Li via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Mar 7 13:47:25 PST 2025
================
@@ -386,6 +386,16 @@ MCSection *TargetLoweringObjectFile::getSectionForConstant(
return DataSection;
}
+MCSection *TargetLoweringObjectFile::getSectionForConstant(
+ const DataLayout &DL, SectionKind Kind, const Constant *C, Align &Alignment,
+ StringRef SectionPrefix) const {
+ // Fallback to `getSectionForConstant` without `SectionPrefix` parameter if it
+ // is empty.
+ if (SectionPrefix.empty())
----------------
david-xl wrote:
current implementation is fine. Perhaps improve the message in report_fatal_error like "Not implemented for the object format".
https://github.com/llvm/llvm-project/pull/129781
More information about the llvm-branch-commits
mailing list