Antoine Pitrou via llvm-dev
2016-Sep-13 11:44 UTC
[llvm-dev] Status of oprofile support in 3.9.1
Hello, I'm trying to build from the release_39 branch with oprofile support enabled ("cmake -DLLVM_USE_OPROFILE=ON"), and I get the following error: /home/antoine/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp: In member function ‘virtual void {anonymous}::OProfileJITEventListener::NotifyObjectEmitted(const llvm::object::ObjectFile&, const llvm::RuntimeDyld::LoadedObjectInfo&)’: /home/antoine/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp:91:23: error: no match for ‘operator!=’ (operand types are ‘llvm::Expected<llvm::object::SymbolRef::Type>’ and ‘llvm::object::SymbolRef::Type’) if (Sym.getType() != SymbolRef::ST_Function) ^ /home/antoine/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp:91:23: note: candidate: operator!=(int, int) <built-in> /home/antoine/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp:91:23: note: no known conversion for argument 1 from ‘llvm::Expected<llvm::object::SymbolRef::Type>’ to ‘int’ Is oprofile still supported in 3.9.x? Thanks Antoine.