diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-16 01:01:55 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-16 01:01:55 +0000 |
commit | d81ba532ed77329280b47f83ef2169de2f8a49b9 (patch) | |
tree | b9164d62bd896341927963a9dc59eb4ddd124b82 /llvm/lib/MC/MCObjectWriter.cpp | |
parent | 09bfa58edd62af6ecbf1ea5177e27e55ab782160 (diff) | |
download | bcm5719-llvm-d81ba532ed77329280b47f83ef2169de2f8a49b9.tar.gz bcm5719-llvm-d81ba532ed77329280b47f83ef2169de2f8a49b9.zip |
MC: Use MCSymbol in MCObject::IsSymbolRefDifferenceFullyResolvedImpl()
Transition one API from `MCSymbolData` to `MCSymbol`. The function
needs both, and the backpointer from `MCSymbolData` to `MCSymbol` is
going away.
llvm-svn: 237498
Diffstat (limited to 'llvm/lib/MC/MCObjectWriter.cpp')
-rw-r--r-- | llvm/lib/MC/MCObjectWriter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCObjectWriter.cpp b/llvm/lib/MC/MCObjectWriter.cpp index e90dea81479..6402a2fed94 100644 --- a/llvm/lib/MC/MCObjectWriter.cpp +++ b/llvm/lib/MC/MCObjectWriter.cpp @@ -35,14 +35,14 @@ bool MCObjectWriter::IsSymbolRefDifferenceFullyResolved( if(!DataA.getFragment() || !DataB.getFragment()) return false; - return IsSymbolRefDifferenceFullyResolvedImpl( - Asm, DataA, *DataB.getFragment(), InSet, false); + return IsSymbolRefDifferenceFullyResolvedImpl(Asm, SA, *DataB.getFragment(), + InSet, false); } bool MCObjectWriter::IsSymbolRefDifferenceFullyResolvedImpl( - const MCAssembler &Asm, const MCSymbolData &DataA, const MCFragment &FB, + const MCAssembler &Asm, const MCSymbol &SymA, const MCFragment &FB, bool InSet, bool IsPCRel) const { - const MCSection &SecA = DataA.getSymbol().getSection(); + const MCSection &SecA = SymA.getSection(); const MCSection &SecB = FB.getParent()->getSection(); // On ELF and COFF A - B is absolute if A and B are in the same section. return &SecA == &SecB; |