[PATCH] D144356: [XCOFF] support the ref directive for object generation.

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 21 19:33:39 PDT 2023


shchenz accepted this revision as: shchenz.
shchenz added a comment.
This revision is now accepted and ready to land.

Looks good to me except one nit.



================
Comment at: llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp:280
+  return StringSwitch<std::optional<MCFixupKind>>(Name)
+      .Case("R_REF", (MCFixupKind)PPC::fixup_ppc_nofixup)
+      .Default(std::nullopt);
----------------
nit: although we don't have user for other fixup kinds, for functionality complete, could we add other cases as well? This is what other targets do.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D144356



More information about the llvm-commits mailing list