This is an archive of the discontinued LLVM Phabricator instance.

[ExecutionEngine] FindFunctionNamed: Skip declarations
ClosedPublic

Authored by loladiro on Jan 20 2015, 8:28 AM.

Details

Summary

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

Diff Detail

Repository
rL LLVM

Event Timeline

loladiro updated this revision to Diff 18436.Jan 20 2015, 8:28 AM
loladiro retitled this revision from to [ExecutionEngine] FindFunctionNamed: Skip declarations.
loladiro updated this object.
loladiro edited the test plan for this revision. (Show Details)
loladiro added a reviewer: lhames.
loladiro set the repository for this revision to rL LLVM.
loladiro added a subscriber: Unknown Object (MLST).
loladiro updated this revision to Diff 18441.Jan 20 2015, 9:21 AM

Same change in the overridden method in MCJIT.

lhames accepted this revision.Jan 20 2015, 11:58 AM
lhames edited edge metadata.

Looks good to me. Thanks Keno!

This revision is now accepted and ready to land.Jan 20 2015, 11:58 AM

Actually, it would be great if you could add a unit test for this too - it doesn't look like anyone is testing FundFunctionNamed yet.

This revision was automatically updated to reflect the committed changes.