diff options
author | Lang Hames <lhames@gmail.com> | 2016-05-26 00:24:18 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2016-05-26 00:24:18 +0000 |
commit | deb27681d723aee33be3489990648abcab440240 (patch) | |
tree | d19443f2e5af6c550cb9f696cd4d3d3ad5976fa0 /llvm/examples | |
parent | 2274808153e8d3ee749521b5d6e56d8cf4c8c4f7 (diff) | |
download | bcm5719-llvm-deb27681d723aee33be3489990648abcab440240.tar.gz bcm5719-llvm-deb27681d723aee33be3489990648abcab440240.zip |
[Kaleidoscope][BuildingAJIT] Make the optimizeModule method for Chapter2
private.
llvm-svn: 270807
Diffstat (limited to 'llvm/examples')
-rw-r--r-- | llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h index 39c6e13c9c9..6ea559bec0a 100644 --- a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h +++ b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h @@ -104,6 +104,8 @@ public: OptimizeLayer.removeModuleSet(H); } +private: + std::unique_ptr<Module> optimizeModule(std::unique_ptr<Module> M) { // Create a function pass manager. auto FPM = llvm::make_unique<legacy::FunctionPassManager>(M.get()); |