[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)
commit5f92a08fc051d921f75af0cab01ce6a5b255b9c4
tree73c7be64de5fffb63c8af12ee74ffacb2b106f01
parentb1e72eca0caf9bb10d66577573d4845557e61c25
[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

llvm-svn: 227227
llvm/lib/ExecutionEngine/ExecutionEngine.cpp
llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
llvm/unittests/ExecutionEngine/MCJIT/MCJITMultipleModuleTest.cpp