MC: Use MCSymbol in RelAndSymbol, NFC

Switch from `MCSymbolData` to `MCSymbol`.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237502 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith
2015-05-16 01:14:19 +00:00
parent 43c7aeef66
commit 57e32d40b7
6 changed files with 18 additions and 26 deletions

View File

@@ -633,7 +633,7 @@ void MachObjectWriter::ComputeSymbolTable(
continue;
// Set the Index and the IsExtern bit.
unsigned Index = Rel.Sym->getIndex();
unsigned Index = Rel.Sym->getData().getIndex();
assert(isInt<24>(Index));
if (IsLittleEndian)
Rel.MRE.r_word1 = (Rel.MRE.r_word1 & (~0U << 24)) | Index | (1 << 27);