[PATCH] D66724: [AIX]Emit function descriptor csect in assembly
Sean Fertile via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 11 07:53:36 PDT 2019
sfertile added inline comments.
================
Comment at: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1724
+ // Emit a null environment pointer.
+ OutStreamer->EmitIntValue(0, PointerSize);
+
----------------
DiggerLin wrote:
> from the begin of the function to here, it actually emit a function description, can we add a new function and put the content into the new function and invoke the new function here ?
A good suggestion. I think we should take it a bit farther though. Add an `AsmPrinter::EmitDescriptor()` virtual function. Calling the base class implementation should be a fatal_error. Then somewhere we can explicitly check the MCAsmInfo if descriptors are needed, and call this new virtual if they are. My suggestion would be in `runOnMachineFunction`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66724/new/
https://reviews.llvm.org/D66724
More information about the llvm-commits
mailing list