[llvm] [GOFF] Emit symbols for functions. (PR #144437)
Ulrich Weigand via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 11 03:35:09 PST 2025
================
@@ -23,12 +23,24 @@ namespace llvm {
class MCSymbolGOFF : public MCSymbol {
// Associated data area of the section. Needs to be emitted first.
- MCSectionGOFF *ADA;
+ MCSectionGOFF *ADA = nullptr;
+
+ // Owner of the symbol if symbol is an external reference. External references
+ // need a section, too, but adding them to a section would make the symbol
+ // defined.
+ MCSectionGOFF *Owner = nullptr;
----------------
uweigand wrote:
>From what I can see, all external reference symbols share the same owner, right? It seems a bit odd to duplicate this pointer into each and every symbol then ...
https://github.com/llvm/llvm-project/pull/144437
More information about the llvm-commits
mailing list