[ExecutionEngine] FindFunctionNamed: Skip declarations
authorKeno Fischer <kfischer@college.harvard.edu>
Tue, 27 Jan 2015 19:29:00 +0000 (19:29 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Tue, 27 Jan 2015 19:29:00 +0000 (19:29 +0000)
commit99b52293c7cb9c6b3a76a07a4922a9d8c8122e6b
tree426259a227ebac9526bc13e99e5710524a5fac6c
parent47b633d4a50d351a79f297e093a571ee1a2e84bb
[ExecutionEngine] FindFunctionNamed: Skip declarations

Summary:
Basically all other methods that look up functions by name skip them if they are mere declarations.
Do the same in FindFunctionNamed.

Reviewers: lhames

Reviewed By: lhames

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D7068

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227227 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/ExecutionEngine.cpp
lib/ExecutionEngine/MCJIT/MCJIT.cpp
unittests/ExecutionEngine/MCJIT/MCJITMultipleModuleTest.cpp