[PATCH] D70461: [AIX] Emit TOC entries for ASM printing

Digger via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 27 07:22:33 PST 2019


DiggerLin added inline comments.


================
Comment at: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1893
+    // Hence we may need to explictly create a MCSectionXCOFF for it.
+    if ((GV || F->isDeclaration()) && !XSym->hasContainingCsect()) {
+      // Make sure the storage class is set.
----------------
it need to GV->isDeclaration(), otherwise a test case which as   
int g=0;
will has storage mapping class XMC_UA. 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D70461





More information about the llvm-commits mailing list