[llvm] r270807 - [Kaleidoscope][BuildingAJIT] Make the optimizeModule method for Chapter2
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Wed May 25 17:24:18 PDT 2016
Author: lhames
Date: Wed May 25 19:24:18 2016
New Revision: 270807
URL: http://llvm.org/viewvc/llvm-project?rev=270807&view=rev
Log:
[Kaleidoscope][BuildingAJIT] Make the optimizeModule method for Chapter2
private.
Modified:
llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h
Modified: llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h?rev=270807&r1=270806&r2=270807&view=diff
==============================================================================
--- llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h (original)
+++ llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h Wed May 25 19:24:18 2016
@@ -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());
More information about the llvm-commits
mailing list