Add an ELFSymbolRef type.
[oota-llvm.git] / lib / Object / SymbolSize.cpp
index 78d620503a88f8d387b21c79cc216b46a6874f1e..730e54cf33052087d98fe4872aa8e35a74365e3c 100644 (file)
@@ -55,8 +55,8 @@ llvm::object::computeSymbolSizes(const ObjectFile &O) {
     auto Syms = E->symbols();
     if (Syms.begin() == Syms.end())
       Syms = E->getDynamicSymbolIterators();
-    for (SymbolRef Sym : Syms)
-      Ret.push_back({Sym, E->getSymbolSize(Sym)});
+    for (ELFSymbolRef Sym : Syms)
+      Ret.push_back({Sym, Sym.getSize()});
     return Ret;
   }