- 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
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/MC/MCSymbolXCOFF.cpp | ||
---|---|---|
14 ↗ | (On Diff #214449) | Is it necessary to put these two functions in the .cpp file? |
Comment Actions
LGTM. (After either responding to or addressing Jason comment)
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp | ||
---|---|---|
1688 | minor nit: 'Csect' --> 'csect' |
llvm/lib/MC/MCSymbolXCOFF.cpp | ||
---|---|---|
14 ↗ | (On Diff #214449) | I will move these to the header in the commit |
Comment Actions
We were stretching the definition of an NFC patch by creating but not using the TOC-base on AIX. I've striped this down to the NFC part and will post a separate patch for the TOC base change that includes a test change to reflect the TOC-base being created.
s/contain/containing/;