[MCJIT] Add a FindGlobalVariableNamed utility
authorKeno Fischer <kfischer@college.harvard.edu>
Sat, 20 Jun 2015 00:55:58 +0000 (00:55 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Sat, 20 Jun 2015 00:55:58 +0000 (00:55 +0000)
commitbea6fb975ebf66cc59711b3e1fc8fb434cdd7a98
tree61108ee1b8d303de71d35025c5bd544fcd272c5f
parent4029c5944b7e3268fed212ac417323f6eae955b0
[MCJIT] Add a FindGlobalVariableNamed utility

Summary: This adds FindGlobalVariableNamed to ExecutionEngine
(plus implementation in MCJIT), which is an analog of
FindFunctionNamed for GlobalVariables.

Reviewers: lhames

Reviewed By: lhames

Subscribers: llvm-commits

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

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