[PATCH] D152945: [SystemZ][z/OS] Implement executePostLayoutBinding for GOFFWriter

Neumann Hon via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 22 14:27:57 PDT 2023


Everybody0523 added inline comments.


================
Comment at: llvm/lib/MC/GOFFObjectWriter.cpp:435
+      createGOFFSymbol(Name, GOFF::ESD_ST_ExternalReference, ParentEsdId);
+
+  if (Source) {
----------------
DiggerLin wrote:
> if the Source must be not  nullptr, please add assert here.
So Source doesn't necessarily _need_ to be non-null per say. In the use in this patch, we use it to create the ER Symbols for global objects declared (but not defined) in the module, which correspond to actual instances of MCSymbolGOFFs. 

This function can also be used to create ER ESD entries that do not correspond to such things, which we will do in a future patch, such as for CEEMAIN.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152945/new/

https://reviews.llvm.org/D152945



More information about the llvm-commits mailing list