diff options
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/JIT.h')
| -rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JIT.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.h b/llvm/lib/ExecutionEngine/JIT/JIT.h index 2eee2e980ce..b9299996033 100644 --- a/llvm/lib/ExecutionEngine/JIT/JIT.h +++ b/llvm/lib/ExecutionEngine/JIT/JIT.h @@ -89,7 +89,12 @@ public: /// specified function by using the dlsym function call. As such it is only /// useful for resolving library symbols, not code generated symbols. /// - void *getPointerToNamedFunction(const std::string &Name); + /// If AbortOnFailure is false and no function with the given name is + /// found, this function silently returns a null pointer. Otherwise, + /// it prints a message to stderr and aborts. + /// + void *getPointerToNamedFunction(const std::string &Name, + bool AbortOnFailure = true); // CompilationCallback - Invoked the first time that a call site is found, // which causes lazy compilation of the target function. |

