Pass MCSymbols to the helper functions in MCELF.h.
[oota-llvm.git] / lib / Target / PowerPC / MCTargetDesc / PPCELFObjectWriter.cpp
index 704cafff8898257b956321e2319934d27377ff0f..c0147763dbc9d2fdae99cc853c73021edf326688 100644 (file)
@@ -407,7 +407,7 @@ bool PPCELFObjectWriter::needsRelocateWithSymbol(const MCSymbol &Sym,
       // The "other" values are stored in the last 6 bits of the second byte.
       // The traditional defines for STO values assume the full byte and thus
       // the shift to pack it.
-      unsigned Other = MCELF::getOther(Sym.getData()) << 2;
+      unsigned Other = MCELF::getOther(Sym) << 2;
       return (Other & ELF::STO_PPC64_LOCAL_MASK) != 0;
   }
 }