Update for llvm changes.

llvm-svn: 241298
This commit is contained in:
Rafael Espindola 2015-07-02 20:55:28 +00:00
parent 5d0c2ffadf
commit cd55286893
1 changed files with 3 additions and 3 deletions

View File

@ -205,10 +205,10 @@ private:
for (SymbolRef sym : obj->symbols()) {
// Skip until we find the symbol.
StringRef name;
if (sym.getName(name))
ErrorOr<StringRef> name = sym.getName();
if (!name)
return false;
if (name != symbol)
if (*name != symbol)
continue;
uint32_t flags = sym.getFlags();
if (flags <= SymbolRef::SF_Undefined)