[ExecutionEngine] Add comment explainging that ExecutionEngine::addGlobalMapping

can only be used on named values.

https://llvm.org/bugs/PR23497



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268415 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Lang Hames 2016-05-03 18:19:35 +00:00
parent 1a0909fd7f
commit 6406486bc6

View File

@ -290,7 +290,8 @@ public:
/// at the specified location. This is used internally as functions are JIT'd
/// and as global variables are laid out in memory. It can and should also be
/// used by clients of the EE that want to have an LLVM global overlay
/// existing data in memory. Mappings are automatically removed when their
/// existing data in memory. Values to be mapped should be named, and have
/// external or weak linkage. Mappings are automatically removed when their
/// GlobalValue is destroyed.
void addGlobalMapping(const GlobalValue *GV, void *Addr);
void addGlobalMapping(StringRef Name, uint64_t Addr);