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

Esme Yi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 19 17:59:28 PST 2023


Esme created this revision.
Esme added reviewers: shchenz, DiggerLin, hubert.reinterpretcast, PowerPC.
Herald added subscribers: wenlei, kbarton, hiraditya, nemanjai.
Herald added a project: All.
Esme requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

A R_REF relocation as a non-relocating reference is required to prevent garbage collection (by the binder) of the ref symbol in object generation.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144356

Files:
  llvm/include/llvm/MC/MCObjectWriter.h
  llvm/include/llvm/MC/MCStreamer.h
  llvm/include/llvm/MC/MCXCOFFStreamer.h
  llvm/lib/MC/MCAsmStreamer.cpp
  llvm/lib/MC/MCStreamer.cpp
  llvm/lib/MC/MCXCOFFStreamer.cpp
  llvm/lib/MC/XCOFFObjectWriter.cpp
  llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
  llvm/test/CodeGen/PowerPC/pgo-ref-directive.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144356.498683.patch
Type: text/x-patch
Size: 12397 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230220/71b2d7fe/attachment.bin>


More information about the llvm-commits mailing list