diff options
author | Lang Hames <lhames@gmail.com> | 2017-09-03 00:50:42 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2017-09-03 00:50:42 +0000 |
commit | a794030da2cff83ad1f18902442080073e06b549 (patch) | |
tree | 1bbcb144d88100b8453501d1e9b19621356e10a3 /examples | |
parent | 0ef1731fbcbf852b0bd7ae08dee9c5dae8f3aef8 (diff) |
[ORC] Add an Error return to the JITCompileCallbackManager::grow method.
Calling grow may result in an error if, for example, this is a callback
manager for a remote target. We need to be able to return this error to the
callee.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312429 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h | 2 | ||||
-rw-r--r-- | examples/Kaleidoscope/BuildingAJIT/Chapter5/KaleidoscopeJIT.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h b/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h index d10e4748f1a..841ea74fb98 100644 --- a/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h +++ b/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h @@ -135,7 +135,7 @@ public: Error addFunctionAST(std::unique_ptr<FunctionAST> FnAST) { // Create a CompileCallback - this is the re-entry point into the compiler // for functions that haven't been compiled yet. - auto CCInfo = CompileCallbackMgr->getCompileCallback(); + auto CCInfo = cantFail(CompileCallbackMgr->getCompileCallback()); // Create an indirect stub. This serves as the functions "canonical // definition" - an unchanging (constant address) entry point to the diff --git a/examples/Kaleidoscope/BuildingAJIT/Chapter5/KaleidoscopeJIT.h b/examples/Kaleidoscope/BuildingAJIT/Chapter5/KaleidoscopeJIT.h index 7ea535b3af5..d3183140d23 100644 --- a/examples/Kaleidoscope/BuildingAJIT/Chapter5/KaleidoscopeJIT.h +++ b/examples/Kaleidoscope/BuildingAJIT/Chapter5/KaleidoscopeJIT.h @@ -164,7 +164,7 @@ public: Error addFunctionAST(std::unique_ptr<FunctionAST> FnAST) { // Create a CompileCallback - this is the re-entry point into the compiler // for functions that haven't been compiled yet. - auto CCInfo = CompileCallbackMgr->getCompileCallback(); + auto CCInfo = cantFail(CompileCallbackMgr->getCompileCallback()); // Create an indirect stub. This serves as the functions "canonical // definition" - an unchanging (constant address) entry point to the |