[llvm-branch-commits] [llvm] [GOFF] Add writing of section symbols (PR #133799)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Apr 14 07:58:19 PDT 2025
================
@@ -2759,6 +2762,29 @@ MCSection *TargetLoweringObjectFileXCOFF::getSectionForLSDA(
//===----------------------------------------------------------------------===//
TargetLoweringObjectFileGOFF::TargetLoweringObjectFileGOFF() = default;
+void TargetLoweringObjectFileGOFF::getModuleMetadata(Module &M) {
+ // Construct the default names for the root SD and the ADA PR symbol.
+ StringRef FileName = sys::path::stem(M.getSourceFileName());
+ if (FileName.size() > 1 && FileName.starts_with('<') &&
+ FileName.ends_with('>'))
+ FileName = FileName.substr(1, FileName.size() - 2);
+ DefaultRootSDName = Twine(FileName).concat("#C").str();
----------------
AidoP wrote:
Thank you, that's very interesting. The documentation seems to suggest that the binding scope attribute only applies to LDs. Interestingly AMBLIST doesn't seem to display it (N/A is shown).
It seems like there are a few undocumented fields and behaviours being relied upon now. Is there anything being done or are there any plans for IBM to update the doc?
https://github.com/llvm/llvm-project/pull/133799
More information about the llvm-branch-commits
mailing list