diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/MC/MachObjectWriter.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/lib/MC/MachObjectWriter.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/contrib/llvm-project/llvm/lib/MC/MachObjectWriter.cpp b/contrib/llvm-project/llvm/lib/MC/MachObjectWriter.cpp index 6b263df92cbe..d17e6e125d87 100644 --- a/contrib/llvm-project/llvm/lib/MC/MachObjectWriter.cpp +++ b/contrib/llvm-project/llvm/lib/MC/MachObjectWriter.cpp @@ -630,7 +630,7 @@ void MachObjectWriter::computeSymbolTable( // Set the Index and the IsExtern bit. unsigned Index = Rel.Sym->getIndex(); assert(isInt<24>(Index)); - if (W.Endian == support::little) + if (W.Endian == llvm::endianness::little) Rel.MRE.r_word1 = (Rel.MRE.r_word1 & (~0U << 24)) | Index | (1 << 27); else Rel.MRE.r_word1 = (Rel.MRE.r_word1 & 0xff) | Index << 8 | (1 << 4); @@ -710,16 +710,6 @@ bool MachObjectWriter::isSymbolRefDifferenceFullyResolvedImpl( return false; return true; } - // For Darwin x86_64, there is one special case when the reference IsPCRel. - // If the fragment with the reference does not have a base symbol but meets - // the simple way of dealing with this, in that it is a temporary symbol in - // the same atom then it is assumed to be fully resolved. This is needed so - // a relocation entry is not created and so the static linker does not - // mess up the reference later. - else if(!FB.getAtom() && - SA.isTemporary() && SA.isInSection() && &SecA == &SecB){ - return true; - } } // If they are not in the same section, we can't compute the diff. |