diff options
Diffstat (limited to 'llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h')
| -rw-r--r-- | llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h index 5a2148a14a1..ab675e3f742 100644 --- a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h +++ b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h @@ -86,6 +86,10 @@ public: return CompileLayer.findSymbol(MangledNameStream.str(), true); } + JITTargetAddress getSymbolAddress(const std::string Name) { + return cantFail(findSymbol(Name).getAddress()); + } + void removeModule(ModuleHandle H) { cantFail(CompileLayer.removeModule(H)); } |

