[llvm] r264194 - More more change need as part of r264187 where ErrorOr<> was added
Kevin Enderby via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 23 14:20:16 PDT 2016
Author: enderby
Date: Wed Mar 23 16:20:16 2016
New Revision: 264194
URL: http://llvm.org/viewvc/llvm-project?rev=264194&view=rev
Log:
More more change need as part of r264187 where ErrorOr<> was added
to getSymbolType().
Modified:
llvm/trunk/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp
Modified: llvm/trunk/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp?rev=264194&r1=264193&r2=264194&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp Wed Mar 23 16:20:16 2016
@@ -113,7 +113,11 @@ void IntelJITEventListener::NotifyObject
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();
More information about the llvm-commits
mailing list