1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

More more change need as part of r264187 where ErrorOr<> was added

to getSymbolType().

llvm-svn: 264194
This commit is contained in:
Kevin Enderby 2016-03-23 21:20:16 +00:00
parent e3e05be155
commit a74c40dcab

View File

@ -113,7 +113,11 @@ void IntelJITEventListener::NotifyObjectEmitted(
std::vector<LineNumberInfo> LineInfo;
std::string SourceFileName;
if (Sym.getType() != SymbolRef::ST_Function)
ErrorOr<SymbolRef::Type> SymTypeOrErr = Sym.getType();
if (!SymTypeOrErr)
continue;
SymbolRef::Type SymType = *SymTypeOrErr;
if (SymType != SymbolRef::ST_Function)
continue;
ErrorOr<StringRef> Name = Sym.getName();