[PATCH] D66032: [AIX][MC] Explicitly set containing csects on XCOFF Symbols

David Tenty via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 9 14:10:44 PDT 2019


daltenty created this revision.
daltenty added reviewers: jasonliu, sfertile, xingxue.
Herald added subscribers: llvm-commits, jsji, MaskRay, kbarton, hiraditya, mgorny, nemanjai.
Herald added a project: LLVM.

- Add a setter and getter for the containing csect of a symbol
- In setting containing csect, don't set twice. Also assert if trying to set a different section.
- Set containing csect explicitly for globals
- Map the TOC Anchor symbol to it's containing csect
- use getContainingCSect() to lookup csect rather than the fragment in XCOFFObjectWriter


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D66032

Files:
  llvm/include/llvm/MC/MCSymbolXCOFF.h
  llvm/lib/MC/CMakeLists.txt
  llvm/lib/MC/MCSymbolXCOFF.cpp
  llvm/lib/MC/XCOFFObjectWriter.cpp
  llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66032.214449.patch
Type: text/x-patch
Size: 4431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190809/049aa29c/attachment.bin>


More information about the llvm-commits mailing list