Extract the load/store type verification to a separate function.
[oota-llvm.git] / lib / MC / MachObjectWriter.cpp
index 5866d8476cb0357fc3b35fc981b9d3a7ca87ce15..002aa3c705e01434ae3d11d223ca06204b3512c0 100644 (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);