[PATCH] D118328: [CodeGen] Emit COFF symbol type for function aliases

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 27 11:14:34 PST 2022


mstorsjo added inline comments.


================
Comment at: llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:1653
+    if (TM.getTargetTriple().isOSBinFormatCOFF()) {
+      OutStreamer->BeginCOFFSymbolDef(Name);
+      OutStreamer->EmitCOFFSymbolStorageClass(
----------------
rnk wrote:
> I see that these directives are emitted in the ARM, AArch64, and X86 AsmPrinter subclasses instead of here in the main asm printer. However, I think it makes more sense to put them here the way you have it. They are common to all COFF targets.
> 
> So, no need to make any changes, just an idea for a cleanup.
Yep - I noticed that they were there, but I didn't want to dive into that right now, assuming they're there for either good or historical reasons...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118328



More information about the llvm-commits mailing list