]> granicus.if.org Git - llvm/commitdiff
[ExecutionEngine] Add comment explainging that ExecutionEngine::addGlobalMapping
authorLang Hames <lhames@gmail.com>
Tue, 3 May 2016 18:19:35 +0000 (18:19 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 3 May 2016 18:19:35 +0000 (18:19 +0000)
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

include/llvm/ExecutionEngine/ExecutionEngine.h

index a7302602dcd839da11813a2756d81ed6a2b81b67..a0f1a30bbadf0cf1df109267c94884b39f4fbba5 100644 (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);