Fix of hang during Intel JIT profiling
[oota-llvm.git] / lib / ExecutionEngine / MCJIT / MCJIT.h
index 138a7b64b23f73b898132b0ee93e4dd968106333..d5c5d77574594d37bf452feba21c29f365949e35 100644 (file)
@@ -71,7 +71,8 @@ public:
   /// Map the address of a JIT section as returned from the memory manager
   /// to the address in the target process as the running code will see it.
   /// This is the address which will be used for relocation resolution.
-  virtual void mapSectionAddress(void *LocalAddress, uint64_t TargetAddress) {
+  virtual void mapSectionAddress(const void *LocalAddress,
+                                 uint64_t TargetAddress) {
     Dyld.mapSectionAddress(LocalAddress, TargetAddress);
   }