This patch emits the function descriptor csect for functions with definitions under both 32-bit/64-bit mode on AIX.
During PPCAIXAsmPrinter::EmitFunctionEntryLabel we emit the csect for each function descriptor.
Differential D66724
[AIX]Emit function descriptor csect in assembly Xiangling_L on Aug 25 2019, 6:53 PM. Authored by
Details This patch emits the function descriptor csect for functions with definitions under both 32-bit/64-bit mode on AIX. During PPCAIXAsmPrinter::EmitFunctionEntryLabel we emit the csect for each function descriptor.
Diff Detail
Event Timeline
Comment Actions
Comment Actions > cat toccommon.c int TOC; void f(void) { } > ./bin/clang toccommon.c -target powerpc64-ibm-aix -m32 -fomit-frame-pointer -S clang-10: /redacted/llvm/include/llvm/MC/MCSymbolXCOFF.h:41: void llvm::MCSymbolXCOFF::setContainingCsect(llvm::MCSectionXCOFF*): Assertion `(!ContainingCsect || ContainingCsect == C) && "Trying to set a containing csect that doesn't match the one that" "this symbol is already mapped to."' failed.
Comment Actions LGTM with some minor change. Should SupportsQuotedNames return false on AIX?
|
runOnMachineFunction reference seems out-of-date with the current patch.