[Kaleidoscope][BuildingAJIT] Make the optimizeModule method for Chapter2

private.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270807 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Lang Hames 2016-05-26 00:24:18 +00:00
parent 2474f04f67
commit fd4178f436

View File

@ -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());