]> granicus.if.org Git - llvm/commit
[PowerPC][XCOFF][MC] Explicitly set containing csect on symbols. [NFC]
authorSean Fertile <sfertile@ca.ibm.com>
Thu, 22 Aug 2019 15:11:23 +0000 (15:11 +0000)
committerSean Fertile <sfertile@ca.ibm.com>
Thu, 22 Aug 2019 15:11:23 +0000 (15:11 +0000)
commita17efce83e8822ad4f67a6a481d69b4016c60c02
treec54860781053f4f3a9c5ad2bd9ae629a623c4910
parent58ad398198b0382f60eb7f3ae912ad781a20bfb5
[PowerPC][XCOFF][MC] Explicitly set containing csect on symbols. [NFC]

Previously we would get the csect a symbol was contained in through its
fragment. This works only if we are writing an object file, and only for
defined symbols. To fix this we set the contating csect explicitly on the
MCSymbolXCOFF object.

Differential Revision: https://reviews.llvm.org/D66032

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369657 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCSymbolXCOFF.h
lib/MC/XCOFFObjectWriter.cpp
lib/Target/PowerPC/PPCAsmPrinter.cpp