MC: Use MCSymbol in RelAndSymbol, NFC

Switch from `MCSymbolData` to `MCSymbol`.

llvm-svn: 237502
This commit is contained in:
Duncan P. N. Exon Smith
2015-05-16 01:14:19 +00:00
parent d2b8fc1f3a
commit 6e23e5a680
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);