- 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
- rL LLVM
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 ↗ | (On Diff #214449) | minor nit: 'Csect' --> 'csect' |
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp | ||
---|---|---|
1688 ↗ | (On Diff #214449) | Minor nits:
|
1689 ↗ | (On Diff #214449) | That way, other methods can freely query it, assuming that it is set. |
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.
Comment Actions
LGTM.
llvm/include/llvm/MC/MCSymbolXCOFF.h | ||
---|---|---|
40 ↗ | (On Diff #216412) | s/contain/containing/; |